--- old/src/hotspot/share/runtime/thread.cpp 2019-11-04 14:59:05.000000000 -0500 +++ new/src/hotspot/share/runtime/thread.cpp 2019-11-04 14:59:05.000000000 -0500 @@ -4658,7 +4658,8 @@ DO_JAVA_THREADS(t_list, p) { if (!p->can_call_java()) continue; - address pending = (address)p->current_pending_monitor(); + ObjectMonitorHandle omh; + address pending = (address)p->current_pending_monitor(&omh); if (pending == monitor) { // found a match if (i < count) result->append(p); // save the first count matches i++;