Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261445

Use memory_order_relaxed for os::random().

    XMLWordPrintable

Details

    • b19
    • generic

    Backports

      Description

        os::random() is used a lot (once for every class) during HotSpot initialization, and it defaults to using a compare-and-swap operation with memory_order_conservative. We don't need that: it should be memory_order_relaxed.

        Attachments

          Issue Links

            Activity

              People

                aph Andrew Haley
                aph Andrew Haley
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: