--- old/src/hotspot/cpu/x86/rdtsc_x86.cpp 2019-09-08 23:47:40.074768464 -0400 +++ new/src/hotspot/cpu/x86/rdtsc_x86.cpp 2019-09-08 23:47:38.862756017 -0400 @@ -62,7 +62,7 @@ fstart = os::rdtsc(); // use sleep to prevent compiler from optimizing - os::sleep(JavaThread::current(), FT_SLEEP_MILLISECS); + JavaThread::current()->sleep(FT_SLEEP_MILLISECS); end = os::elapsed_counter(); OrderAccess::fence();