< 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(Thread::current(), cur, true);
+    os::sleep(JavaThread::current(), cur);
 
     double end = os::elapsedTime();
     total = (size_t)((end - start) * 1000);
 
     if (total > max) {
< prev index next >