< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java

Print this page
rev 56807 : [mq]: 8232684-v2

@@ -158,11 +158,11 @@
      * free CPU time so that the thread's memory could not
      * be moved to swap file.
      */
     public void run() {
         while (!GO && !timeout())
-            yield();
+            Thread.yield();
         while (!STOP && !timeout())
             ;
     }
 
     private static long startTime = System.currentTimeMillis();
< prev index next >