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

    • Sub-task
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: