On Tue, 9 Mar 2021 06:12:09 GMT, Yasumasa Suenaga <ysuen...@openjdk.org> wrote:
>> How do you do that? > > For example, can we write following code? > > while (steadyStateThread.getState() != Thread.State.BLOCKED) { > Thread.onSpinWait(); > } Ok, that's easy enough. What about the loop before it. Do you prefer 100ms sleeps or onSpinWait() for it also. ------------- PR: https://git.openjdk.java.net/jdk/pull/2700