Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8186670 Implement _onSpinWait() intrinsic for AArch64
  3. JDK-8275728

Add simple Producer/Consumer microbenchmark for Thread.onSpinWait

    XMLWordPrintable

    Details

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

      Description

      From https://mail.openjdk.java.net/pipermail/hotspot-dev/2021-August/054033.html:

      "a SynchronousQueue microbenchmark (you can find it in https://bugs.openjdk.java.net/browse/JDK-8267502).... The SynchronousQueue microbenchmark, which uses Thread.onSpinWait, got 2.9x improvement."

      Since jdk17 java.util.concurrent.SynchronousQueue has not been using Thread.onSpinWait. Because of this the microbenchmark shows no improvements.

      A microbenchmark for the approach used in jdk11 java.util.concurrent.SynchronousQueue can be added.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eastigeevich Evgeny Astigeevich
              Reporter:
              eastigeevich Evgeny Astigeevich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: