# HG changeset patch # User dtitov # Date 1560807109 25200 # Node ID 52ef318dba4807b256a4801fcaa1821e7988bfed # Parent a020263526c9a854b8dce83079e43554c7dad7f9 8217348: assert(thread->is_Java_thread()) failed: just checking Reviewed-by: sspitsyn, dholmes, amenkov, jcbeyler, zgu diff -r a020263526c9 -r 52ef318dba48 src/share/vm/prims/jvmtiEnvBase.cpp --- a/src/share/vm/prims/jvmtiEnvBase.cpp Mon Apr 26 09:52:35 2021 +0200 +++ b/src/share/vm/prims/jvmtiEnvBase.cpp Mon Jun 17 14:31:49 2019 -0700 @@ -1092,7 +1092,7 @@ // If the monitor has no owner, then a non-suspended contending // thread could potentially change the state of the monitor by // entering it. The JVM/TI spec doesn't allow this. - if (owning_thread == NULL && !at_safepoint & + if (owning_thread == NULL && !at_safepoint && !JvmtiEnv::is_thread_fully_suspended(pending_thread, true, &debug_bits)) { if (ret.owner != NULL) { destroy_jni_reference(calling_thread, ret.owner);