src/hotspot/cpu/x86/rdtsc_x86.cpp
changeset 58095 adc72cd1d1f2
parent 58041 d8902e9c307c
child 58679 9c3209ff7550
child 59290 97d13893ec3c
--- a/src/hotspot/cpu/x86/rdtsc_x86.cpp	Thu Sep 12 03:21:11 2019 +0200
+++ b/src/hotspot/cpu/x86/rdtsc_x86.cpp	Wed Sep 11 22:09:05 2019 -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();