< prev index next >

test/hotspot/gtest/utilities/test_singleWriterSynchronizer.cpp

Print this page

        

@@ -134,11 +134,11 @@
 
   tty->print_cr("Stressing synchronizer for %u ms", milliseconds_to_run);
   JavaThread* cur = JavaThread::current();
   {
     ThreadInVMfromNative invm(cur);
-    os::sleep(cur, milliseconds_to_run);
+    cur->sleep(milliseconds_to_run);
   }
   continue_running = 0;
   for (uint i = 0; i < nreaders + 1; ++i) {
     post.wait();
   }
< prev index next >