In https://bugs.openjdk.org/browse/JDK-8366671 a RAII object SpinCriticalSection was introduced as a result of refactoring.
There is a certain degree of similarity between the original acquisition code (aka Thread::SpinAcquire()) now residing in SpinCriticalSection and in the SpinYield class. The latter is more flexible.
SpinCriticalSection should be using SpinYield instead.
There is a certain degree of similarity between the original acquisition code (aka Thread::SpinAcquire()) now residing in SpinCriticalSection and in the SpinYield class. The latter is more flexible.
SpinCriticalSection should be using SpinYield instead.
- links to
-
Commit(master)
openjdk/jdk/5141e1a4
-
Review(master)
openjdk/jdk/28763