test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java
changeset 59021 cfc7bb9a5a92
parent 50169 dd501973095c
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   158      * free CPU time so that the thread's memory could not
   158      * free CPU time so that the thread's memory could not
   159      * be moved to swap file.
   159      * be moved to swap file.
   160      */
   160      */
   161     public void run() {
   161     public void run() {
   162         while (!GO && !timeout())
   162         while (!GO && !timeout())
   163             yield();
   163             Thread.yield();
   164         while (!STOP && !timeout())
   164         while (!STOP && !timeout())
   165             ;
   165             ;
   166     }
   166     }
   167 
   167 
   168     private static long startTime = System.currentTimeMillis();
   168     private static long startTime = System.currentTimeMillis();