Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8293010: JDI ObjectReference/referringObjects/referringObjects001 fai…
…ls: assert(env->is_enabled(JVMTI_EVENT_OBJECT_FREE)) failed: checking

Reviewed-by: cjplummer, zgu, lmesnik
  • Loading branch information
Serguei Spitsyn committed Sep 2, 2022
1 parent 0fb9469 commit 99c3ab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/prims/jvmtiExport.cpp
Expand Up @@ -1697,7 +1697,9 @@ void JvmtiExport::post_object_free(JvmtiEnv* env, GrowableArray<jlong>* objects)
if (javaThread->is_in_VTMS_transition()) {
return; // no events should be posted if thread is in a VTMS transition
}
assert(env->is_enabled(JVMTI_EVENT_OBJECT_FREE), "checking");
if (!env->is_enabled(JVMTI_EVENT_OBJECT_FREE)) {
return; // the event type has been already disabled
}

EVT_TRIG_TRACE(JVMTI_EVENT_OBJECT_FREE, ("[?] Trg Object Free triggered" ));
EVT_TRACE(JVMTI_EVENT_OBJECT_FREE, ("[?] Evt Object Free sent"));
Expand Down

1 comment on commit 99c3ab0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.