< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahPacer.cpp

Print this page

        

@@ -240,11 +240,11 @@
     if (total + cur > max) {
       cur = (max > total) ? (max - total) : 0;
     }
     cur = MAX2<size_t>(1, cur);
 
-    os::sleep(JavaThread::current(), cur);
+    JavaThread::current()->sleep(cur);
 
     double end = os::elapsedTime();
     total = (size_t)((end - start) * 1000);
 
     if (total > max) {
< prev index next >