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

Use memory_order_relaxed for os::random().

XMLWordPrintable

    • b19
    • generic

        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.

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

                Created:
                Updated:
                Resolved: