jdk/test/java/util/concurrent/locks/ReentrantLock/TimeoutLockLoops.java
changeset 32990 299a81977f48
parent 32501 2f30d9c229e5
child 34344 c197b8ec30e9
equal deleted inserted replaced
32989:c0ff74aaf943 32990:299a81977f48
    54 
    54 
    55     public static void main(String[] args) throws Exception {
    55     public static void main(String[] args) throws Exception {
    56         int maxThreads = 100;
    56         int maxThreads = 100;
    57         if (args.length > 0)
    57         if (args.length > 0)
    58             maxThreads = Integer.parseInt(args[0]);
    58             maxThreads = Integer.parseInt(args[0]);
    59 
       
    60 
    59 
    61         print = true;
    60         print = true;
    62 
    61 
    63         for (int i = 1; i <= maxThreads; i += (i+1) >>> 1) {
    62         for (int i = 1; i <= maxThreads; i += (i+1) >>> 1) {
    64             System.out.print("Threads: " + i);
    63             System.out.print("Threads: " + i);
   138                 ex.printStackTrace();
   137                 ex.printStackTrace();
   139                 return;
   138                 return;
   140             }
   139             }
   141         }
   140         }
   142     }
   141     }
   143 
       
   144 
       
   145 }
   142 }