changeset 9444:52ef318dba48

8217348: assert(thread->is_Java_thread()) failed: just checking Reviewed-by: sspitsyn, dholmes, amenkov, jcbeyler, zgu
author dtitov
date Mon, 17 Jun 2019 14:31:49 -0700
parents a020263526c9
children 85f20f6ec580
files src/share/vm/prims/jvmtiEnvBase.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);