< prev index next >

test/jdk/jdk/jfr/event/runtime/TestThreadCpuTimeEvent.java

Print this page
rev 56807 : [mq]: 8232684-v2

@@ -105,11 +105,11 @@
                     barrier.await();
                 }
             } catch (BrokenBarrierException e) {
                 // Another thread has been interrupted - wait for us to be interrupted as well
                 while (!interrupted()) {
-                    yield();
+                    Thread.yield();
                 }
             } catch (InterruptedException e) {
                 // Normal way of stopping the thread
             }
         }
< prev index next >