test/jdk/com/sun/jdi/TwoThreadsTest.java
changeset 59021 cfc7bb9a5a92
parent 47216 71c04702a3d5
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    68             run2();
    68             run2();
    69         }
    69         }
    70     }
    70     }
    71 
    71 
    72     public void bkpt1(int i) {
    72     public void bkpt1(int i) {
    73         yield();
    73         Thread.yield();
    74     }
    74     }
    75 
    75 
    76     public void run1() {
    76     public void run1() {
    77         int i = 0;
    77         int i = 0;
    78         while (i < count) {
    78         while (i < count) {
    80             bkpt1(i);
    80             bkpt1(i);
    81         }
    81         }
    82     }
    82     }
    83 
    83 
    84     public void bkpt2(int i) {
    84     public void bkpt2(int i) {
    85         yield();
    85         Thread.yield();
    86     }
    86     }
    87 
    87 
    88     public void run2() {
    88     public void run2() {
    89         int i = 0;
    89         int i = 0;
    90         while (i < count) {
    90         while (i < count) {