< prev index next >

src/hotspot/cpu/x86/rdtsc_x86.cpp

Print this page

        

@@ -60,11 +60,11 @@
     start = os::elapsed_counter();
     OrderAccess::fence();
     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();
     fend = os::rdtsc();
 
< prev index next >