diff options
| -rw-r--r-- | runtime/openjdkjvmti/events.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/openjdkjvmti/events.cc b/runtime/openjdkjvmti/events.cc index 7e4ee8491d..450f85e51a 100644 --- a/runtime/openjdkjvmti/events.cc +++ b/runtime/openjdkjvmti/events.cc @@ -133,6 +133,8 @@ class JvmtiAllocationListener : public art::gc::AllocationListener { DCHECK_EQ(self, art::Thread::Current()); if (handler_->IsEventEnabledAnywhere(JVMTI_EVENT_VM_OBJECT_ALLOC)) { + art::StackHandleScope<1> hs(self); + auto h = hs.NewHandleWrapper(obj); // jvmtiEventVMObjectAlloc parameters: // jvmtiEnv *jvmti_env, // JNIEnv* jni_env, |