changeset 59021 | cfc7bb9a5a92 |
parent 51214 | 67736b4846a0 |
--- a/test/jdk/jdk/jfr/event/runtime/TestThreadCpuTimeEvent.java Mon Nov 11 17:43:10 2019 -0800 +++ b/test/jdk/jdk/jfr/event/runtime/TestThreadCpuTimeEvent.java Tue Nov 12 06:32:13 2019 +0000 @@ -107,7 +107,7 @@ } 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