RFR: 8261445: Use memory_order_relaxed for os::random().
Aleksey Shipilev
shade at openjdk.java.net
Fri Apr 16 08:03:44 UTC 2021
On Tue, 9 Feb 2021 14:49:12 GMT, Andrew Haley <aph at openjdk.org> wrote:
> 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.
This one seems to have fallen through the cracks. @theRealAph, would you like to finish it?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2484
More information about the hotspot-runtime-dev
mailing list