Spin Loop Hint support: Draft JEP proposal
Paul Sandoz
paul.sandoz at oracle.com
Mon Oct 5 15:46:43 UTC 2015
> I wonder how Gil's proposed PerformanceHints.spinLoopHint() is to be called. Just before entering the spin-loop or at each iteration of the loop?
The latter, e.g. see the benchmark code.
> 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().
Paul.
More information about the core-libs-dev
mailing list