changeset 56836:09ee0bd26bda

8217348: assert(thread->is_Java_thread()) failed: just checking Reviewed-by: sspitsyn, dholmes, amenkov, jcbeyler
author dtitov
date Mon, 17 Jun 2019 14:31:49 -0700
parents 2d62c1192d41
children 6c2d53701e34
files src/hotspot/share/prims/jvmtiEnvBase.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/jvmtiEnvBase.cpp	Thu Jun 13 11:21:50 2019 -0700
+++ b/src/hotspot/share/prims/jvmtiEnvBase.cpp	Mon Jun 17 14:31:49 2019 -0700
@@ -1083,7 +1083,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 &&
               !pending_thread->is_thread_fully_suspended(true, &debug_bits)) {
             if (ret.owner != NULL) {
               destroy_jni_reference(calling_thread, ret.owner);