test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread006.java
changeset 59021 cfc7bb9a5a92
parent 50169 dd501973095c
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   174      * free CPU time so that the thread's memory could not
   174      * free CPU time so that the thread's memory could not
   175      * be moved to swap file.
   175      * be moved to swap file.
   176      */
   176      */
   177     public void run() {
   177     public void run() {
   178         while (!GO && !timeout())
   178         while (!GO && !timeout())
   179             yield();
   179             Thread.yield();
   180         while (!STOP && !timeout())
   180         while (!STOP && !timeout())
   181             ;
   181             ;
   182     }
   182     }
   183 
   183 
   184     private static long startTime = System.currentTimeMillis();
   184     private static long startTime = System.currentTimeMillis();