RFR: 8290892: C2: Intrinsify Reference.reachabilityFence [v8]

Emanuel Peter epeter at openjdk.org
Thu Sep 18 11:58:28 UTC 2025


On Wed, 17 Sep 2025 19:48:44 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>> Ah yes: we may for example move a store out (after) the loop. But wait. We can't move a store across a SafePoint, so that's not a good example.
>
> For example, loads suffer from the same problems as stores, but constraints on them are more lax.

Are you saying we are allowed to move loads across SafePoints, but not across RF? If yes, please add such an example to the code comments ;)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25315#discussion_r2358830331


More information about the hotspot-compiler-dev mailing list