You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, in BaseMpscLinkedArrayQueue (various places) or as a WaitStrategy, the new Thread.onSpinWait() method from JEP 285 would be useful to add support for. This method adds a JVM hint that it can use a PAUSE instruction in x86 (or equivalent) which is a lower power usage instruction useful for spin locks. Depending on implementation, this may take advantage of multi-release jars as accessing this method reflectively would defeat the purpose of it.
The text was updated successfully, but these errors were encountered:
This makefile builds a jar that works with and JDK from 6 to 9 (and beyond). Just add this jar to the classpath and insert ThreadHints.onSpinWait() whereever you have a busy loop.
For example, in
BaseMpscLinkedArrayQueue
(various places) or as aWaitStrategy
, the new Thread.onSpinWait() method from JEP 285 would be useful to add support for. This method adds a JVM hint that it can use aPAUSE
instruction in x86 (or equivalent) which is a lower power usage instruction useful for spin locks. Depending on implementation, this may take advantage of multi-release jars as accessing this method reflectively would defeat the purpose of it.The text was updated successfully, but these errors were encountered: