RFR (XS): 8165860: workgroup classes are missing volatile qualifiers for lock-free code
Thomas Schatzl
thomas.schatzl at oracle.com
Mon Sep 19 15:00:36 UTC 2016
Hi,
On Mon, 2016-09-19 at 15:50 +0200, Mikael Gerdin wrote:
> Hi Erik,
>
> On 2016-09-19 15:48, Erik Ă–sterlund wrote:
> >
> > Hi,
> >
> > Mikael Gerdin noticed a compiler workaround could be done in a
> > nicer-looking way.
so just assigning the volatile to the temp is not sufficient to make
sure the compiler generates code to only read it once?
Thanks,
Thomas
More information about the hotspot-gc-dev
mailing list