--- old/src/hotspot/share/gc/shared/concurrentGCThread.cpp 2019-03-27 14:17:37.583202603 +0100 +++ new/src/hotspot/share/gc/shared/concurrentGCThread.cpp 2019-03-27 14:17:37.244191513 +0100 @@ -30,7 +30,6 @@ #include "runtime/os.hpp" ConcurrentGCThread::ConcurrentGCThread() : - _monitor(Monitor::leaf, "ConcurrentGCThread"), _should_terminate(false), _has_terminated(false) {} @@ -51,7 +50,7 @@ run_service(); // Signal thread has terminated - MonitorLockerEx ml(&_monitor); + MonitorLockerEx ml(Terminator_lock); OrderAccess::release_store(&_has_terminated, true); ml.notify_all(); } @@ -66,7 +65,7 @@ stop_service(); // Wait for thread to terminate - MonitorLockerEx ml(&_monitor); + MonitorLockerEx ml(Terminator_lock); while (!_has_terminated) { ml.wait(); }