RFR: 8333791: Fix memory barriers for @Stable fields

Aleksey Shipilev shade at openjdk.org
Thu Jul 11 09:02:56 UTC 2024


On Wed, 10 Jul 2024 23:35:01 GMT, Dean Long <dlong at openjdk.org> wrote:

> Do we still need separate _wrote_stable and _wrote_final flags, or could we combine them into _wrote_stable_or_final? Then we are almost back to pre-8031818, when _wrote_final was overloaded to mean write to final or stable field.

One of my previous iterations did this combination, but I thought it was: a) uglier; b) not future-proof, in case someone (probably me, later) would like to check the parser state for final fields writes specifically. So I thought to track final and stable field writes separately.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19635#issuecomment-2222400103


More information about the hotspot-dev mailing list