RFR: 8373495: C2: Aggressively fold loads from objects that have not escaped [v4]
Quan Anh Mai
qamai at openjdk.org
Fri Dec 12 02:30:23 UTC 2025
On Thu, 11 Dec 2025 21:23:22 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> I think the Java memory model allows this reordering and places the responsibility on the programmer to use a synchronization mechanism if the reordering is undesirable, no?
>
> Yes, I think. May be we should add comment about that.
I have added comments to further stress the importance of memory barriers if the developer needs the accesses serialized.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28764#discussion_r2612660563
More information about the hotspot-compiler-dev
mailing list