diff options
Diffstat (limited to 'openjdkjvmti/ti_class.cc')
-rw-r--r-- | openjdkjvmti/ti_class.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/openjdkjvmti/ti_class.cc b/openjdkjvmti/ti_class.cc index 954b5d1d03..daf4a8b7f2 100644 --- a/openjdkjvmti/ti_class.cc +++ b/openjdkjvmti/ti_class.cc @@ -318,14 +318,11 @@ struct ClassCallback : public art::ClassLoadCallback { ScopedLocalRef<jthread> thread_jni( thread->GetJniEnv(), peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); - { - art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative); - event_handler->DispatchEvent<ArtJvmtiEvent::kClassLoad>( - thread, - static_cast<JNIEnv*>(thread->GetJniEnv()), - thread_jni.get(), - jklass.get()); - } + event_handler->DispatchEvent<ArtJvmtiEvent::kClassLoad>( + thread, + static_cast<JNIEnv*>(thread->GetJniEnv()), + thread_jni.get(), + jklass.get()); if (klass->IsTemp()) { AddTempClass(thread, jklass.get()); } @@ -348,7 +345,6 @@ struct ClassCallback : public art::ClassLoadCallback { ScopedLocalRef<jthread> thread_jni( thread->GetJniEnv(), peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); - art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative); event_handler->DispatchEvent<ArtJvmtiEvent::kClassPrepare>( thread, static_cast<JNIEnv*>(thread->GetJniEnv()), |