RFR(XS): 8251179: Word tearing problem with _last_sweep
Markus Gronlund
markus.gronlund at oracle.com
Fri Aug 7 09:20:22 UTC 2020
Coleen, David and Kim,
Thank you for your reviews!
Markus
-----Original Message-----
From: Coleen Phillimore
Sent: den 7 augusti 2020 00:20
To: hotspot-dev at openjdk.java.net
Subject: Re: RFR(XS): 8251179: Word tearing problem with _last_sweep
This looks good to me. Thank you for fixing this!
Coleen
On 8/6/20 6:09 PM, Markus Gronlund wrote:
> Greetings,
>
> This is a follow-up to 8235573: Move JFR ObjectSample oop into OopStorage.
>
> As of JDK-8235573, the static variable _last_sweep in objectSampler.cpp can be modified and read concurrently. For 64 bit platforms, this isn't a problem but for 32 bit platforms that support concurrent weak reference processing, this could word tear. This change adds atomic accesses for said variable.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8251179
> Webrev: http://cr.openjdk.java.net/~mgronlun/8251179/webrev00/
> Testing: jdk_jfr
>
> Thank you
> Markus
More information about the hotspot-dev
mailing list