RFR: 8333791: Fix memory barriers for @Stable fields
Paul Sandoz
psandoz at openjdk.org
Tue Jul 16 15:43:54 UTC 2024
On Tue, 16 Jul 2024 09:53:55 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> > IIUC this means we can remove the explicit fence here:
> > ```
> > public ConstantCallSite(MethodHandle target) {
> > super(target);
> > isFrozen = true;
> > UNSAFE.storeStoreFence(); // properly publish isFrozen update
> > }
> > ```
>
> I think so, but there is more to it: there are other fences around the `CallSite`-s that might be related to this. I would prefer not to do it any of usage changes in this PR.
Agreed, just wanted to test my understanding.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19635#issuecomment-2231262373
More information about the hotspot-dev
mailing list