Spin Loop Hint support: Draft JEP proposal (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Mon Oct 5 15:46:43 UTC 2015
- Previous message: Spin Loop Hint support: Draft JEP proposal
- Next message: Spin Loop Hint support: Draft JEP proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Spin Loop Hint support: Draft JEP proposal
- Next message: Spin Loop Hint support: Draft JEP proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]