diff -r 2bea53d7a27b -r 625f9432612a src/hotspot/share/prims/jvmtiEnv.cpp --- a/src/hotspot/share/prims/jvmtiEnv.cpp Mon Jun 04 16:21:08 2018 +0200 +++ b/src/hotspot/share/prims/jvmtiEnv.cpp Mon Jun 04 20:14:13 2018 -0400 @@ -3313,7 +3313,7 @@ #endif /* PROPER_TRANSITIONS */ assert(r == ObjectMonitor::OM_OK, "raw_enter should have worked"); } else { - if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) { + if (thread->is_Named_thread()) { r = rmonitor->raw_enter(thread); } else { ShouldNotReachHere(); @@ -3351,7 +3351,7 @@ #endif /* PROPER_TRANSITIONS */ r = rmonitor->raw_exit(current_thread); } else { - if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) { + if (thread->is_Named_thread()) { r = rmonitor->raw_exit(thread); } else { ShouldNotReachHere(); @@ -3408,7 +3408,7 @@ #endif /* PROPER_TRANSITIONS */ } else { - if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) { + if (thread->is_Named_thread()) { r = rmonitor->raw_wait(millis, true, thread); } else { ShouldNotReachHere(); @@ -3442,7 +3442,7 @@ ThreadInVMfromUnknown __tiv; r = rmonitor->raw_notify(current_thread); } else { - if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) { + if (thread->is_Named_thread()) { r = rmonitor->raw_notify(thread); } else { ShouldNotReachHere(); @@ -3472,7 +3472,7 @@ ThreadInVMfromUnknown __tiv; r = rmonitor->raw_notifyAll(current_thread); } else { - if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) { + if (thread->is_Named_thread()) { r = rmonitor->raw_notifyAll(thread); } else { ShouldNotReachHere();