Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147832 JEP 285: Spin-Wait Hints
  3. JDK-8147844

new method j.l.Thread.onSpinWait() and the corresponding x86 hotspot instrinsic

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b120

      Description

      For details on the java.lang.Thread.onSpinWait() methods refer to the parent task.

      This subtask adds a new method onSpinWait() to java.lang.Thread class with a legitimate implementation that is empty. A corresponding x86 hotspot intrinsic allows to actually benefit from this spin loop hint by injecting a 'pause' instruction into the c2 compiled code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ikrylov Ivan Krylov
                Reporter:
                ikrylov Ivan Krylov
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: