diff options
author | 2016-10-12 19:48:18 +0000 | |
---|---|---|
committer | 2016-10-12 19:48:18 +0000 | |
commit | e8317d90c61dde07c12e404a2bc1fabf584905c1 (patch) | |
tree | 4681c6dcc7cd432e797d69ba94b157105778de0e /runtime/openjdkjvmti/OpenjdkJvmTi.cc | |
parent | 33625ed00f1ba234262cde4edd2c1f569853f4ef (diff) | |
parent | e54d992ee75c0924c9a8d4e2f77dacf44c8c651b (diff) |
Merge "ART: Add heap iteration callback"
Diffstat (limited to 'runtime/openjdkjvmti/OpenjdkJvmTi.cc')
-rw-r--r-- | runtime/openjdkjvmti/OpenjdkJvmTi.cc | 4 |
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) { |