RFR: 8338566: Missing membar in ciEnv::get_or_create_exception before publishing handle
Vladimir Kozlov
kvn at openjdk.org
Wed Sep 11 16:00:07 UTC 2024
On Wed, 11 Sep 2024 14:17:30 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
> Similar to [JDK-8251923](https://bugs.openjdk.org/browse/JDK-8251923), we need a store-store barrier before publishing a handle because otherwise another thread could observe the handle before it's fully initialized and read null from it. This affects architectures with a weak memory model like AArch64.
>
> Unfortunately, this only happened twice in our testing and I was never able to reproduce it.
>
> Thanks,
> Tobias
Good
-------------
Marked as reviewed by kvn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20950#pullrequestreview-2297722847
More information about the hotspot-compiler-dev
mailing list