SpinCriticalSection should use SpinYield

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: None
    • Component/s: hotspot
    • master

      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.

            Assignee:
            Anton Artemov
            Reporter:
            Anton Artemov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: