test/jdk/jdk/jfr/event/runtime/TestThreadCpuTimeEvent.java
changeset 59021 cfc7bb9a5a92
parent 51214 67736b4846a0
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   105                     barrier.await();
   105                     barrier.await();
   106                 }
   106                 }
   107             } catch (BrokenBarrierException e) {
   107             } catch (BrokenBarrierException e) {
   108                 // Another thread has been interrupted - wait for us to be interrupted as well
   108                 // Another thread has been interrupted - wait for us to be interrupted as well
   109                 while (!interrupted()) {
   109                 while (!interrupted()) {
   110                     yield();
   110                     Thread.yield();
   111                 }
   111                 }
   112             } catch (InterruptedException e) {
   112             } catch (InterruptedException e) {
   113                 // Normal way of stopping the thread
   113                 // Normal way of stopping the thread
   114             }
   114             }
   115         }
   115         }