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: adinn
Backport-of: 99c3ab01773fcab885aa041345aab1a1ad4d852f
  • Loading branch information
GoeLin committed Dec 27, 2022
1 parent 0ab310e commit 41c9d7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/prims/jvmtiExport.cpp
Expand Up @@ -1494,7 +1494,9 @@ void JvmtiExport::post_thread_end(JavaThread *thread) {

void JvmtiExport::post_object_free(JvmtiEnv* env, GrowableArray<jlong>* objects) {
assert(objects != NULL, "Nothing to post");
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 41c9d7d

@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.