summaryrefslogtreecommitdiff
path: root/runtime/openjdkjvmti/OpenjdkJvmTi.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-10-12 19:48:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-10-12 19:48:18 +0000
commite8317d90c61dde07c12e404a2bc1fabf584905c1 (patch)
tree4681c6dcc7cd432e797d69ba94b157105778de0e /runtime/openjdkjvmti/OpenjdkJvmTi.cc
parent33625ed00f1ba234262cde4edd2c1f569853f4ef (diff)
parente54d992ee75c0924c9a8d4e2f77dacf44c8c651b (diff)
Merge "ART: Add heap iteration callback"
Diffstat (limited to 'runtime/openjdkjvmti/OpenjdkJvmTi.cc')
-rw-r--r--runtime/openjdkjvmti/OpenjdkJvmTi.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/openjdkjvmti/OpenjdkJvmTi.cc b/runtime/openjdkjvmti/OpenjdkJvmTi.cc
index 36be2a0127..05da585b3a 100644
--- a/runtime/openjdkjvmti/OpenjdkJvmTi.cc
+++ b/runtime/openjdkjvmti/OpenjdkJvmTi.cc
@@ -39,6 +39,7 @@
#include "art_jvmti.h"
#include "base/mutex.h"
#include "events-inl.h"
+#include "heap.h"
#include "jni_env_ext-inl.h"
#include "object_tagging.h"
#include "obj_ptr-inl.h"
@@ -276,7 +277,8 @@ class JvmtiFunctions {
jclass klass,
const jvmtiHeapCallbacks* callbacks,
const void* user_data) {
- return ERR(NOT_IMPLEMENTED);
+ HeapUtil heap_util(&gObjectTagTable);
+ return heap_util.IterateThroughHeap(env, heap_filter, klass, callbacks, user_data);
}
static jvmtiError GetTag(jvmtiEnv* env, jobject object, jlong* tag_ptr) {