Spin Loop Hint support: Draft JEP proposal
ivan at azulsystems.com
Mon Oct 5 18:06:37 UTC 2015
>> Is this some kind of CPU.yield() (by analogy to Thread.yield())?
> I was wondering the same, it feels like a more vague (API abstraction-wise at least) architecture specific Thread.yield().
Thread.sleep(0), Thread.yield() and now PerformanceHints.spinLoopHint()
are all implementation specific.
Furthermore, Intel  says " The execution of the next instruction is
delayed for an implementation-specific amount of time."
Can be a nop (and is a nop on old CPUs), can be something else.
 - https://software.intel.com/en-us/node/524249
More information about the core-libs-dev