--- old/src/hotspot/share/runtime/thread.cpp 2020-05-06 20:09:15.000000000 -0400 +++ new/src/hotspot/share/runtime/thread.cpp 2020-05-06 20:09:15.000000000 -0400 @@ -4683,6 +4683,8 @@ DO_JAVA_THREADS(t_list, p) { if (!p->can_call_java()) continue; + // The first stage of async deflation does not affect any field + // used by this comparison so the ObjectMonitor* is usable here. address pending = (address)p->current_pending_monitor(); if (pending == monitor) { // found a match if (i < count) result->append(p); // save the first count matches