RFR: 8324186: AARCH64: Use "dmb.ishst+dmb.ishld" for release barrier
kuaiwei
duke at openjdk.org
Mon Jan 22 15:04:33 UTC 2024
On Mon, 22 Jan 2024 10:14:28 GMT, Andrew Haley <aph at openjdk.org> wrote:
> > Could we instead make the last store to a final field in a constructor an STLR and remove the release barrier?
>
> It's possible, but it would be more work.
I tried it before and failed. We can not bind the final field store with stlr, because the store which publish the new obj to heap can float above and cause trouble. It may work if bind the stlr with the publish store. But we may add multiple stlr.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17511#issuecomment-1904188653
More information about the hotspot-dev
mailing list