[concurrency-interest] spinLoopHint() JEP draft discussion

thurstonn thurston at nomagicsoftware.com
Sun Oct 11 12:42:21 EDT 2015

How exactly does this work?
My understanding (very, very limited), was that MWAIT works with a memory
address, pseudo:
"continue execution upon a write to memory location X" ,
but the proposed spinLoopHint() doesn't take any argument.

Is the idea that the JIT would somehow figure out the memory address in

e.g., I looked at your SpinHintTests, how would the runtime "know" that
#spinData was the memory address to monitor?

View this message in context: http://jsr166-concurrency.10961.n7.nabble.com/spinLoopHint-JEP-draft-discussion-tp12781p12802.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.

More information about the Concurrency-interest mailing list