--- old/src/hotspot/share/runtime/safepoint.cpp 2019-09-04 05:35:49.800017076 -0400 +++ new/src/hotspot/share/runtime/safepoint.cpp 2019-09-04 05:35:48.736006807 -0400 @@ -939,7 +939,7 @@ break; // Could not send signal. Report fatal error. } // Give cur_thread a chance to report the error and terminate the VM. - os::sleep(Thread::current(), 3000, false); + os::naked_sleep(3000); } } fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",