On Thu, 7 May 2026 08:35:51 GMT, Tobias Hartmann <[email protected]> wrote:

> [JDK-8381472](https://bugs.openjdk.org/browse/JDK-8381472) added a new fast 
> path for acmp that emits "unsafe" loads:
> https://github.com/openjdk/valhalla/blob/46dafa35ea274abed90c4c1475fbbff69bb14d6b/src/hotspot/share/opto/parse2.cpp#L2331-L2334
> 
> Although those loads are marked as unsafe themselves, they are still emitted 
> even if `InlineUnsafeOps` is false. The assert in 
> `Compile::flatten_alias_type` needs to be adjusted to account for this. Not 
> adding a regression test because this easily reproduces with an existing test 
> (in higher tiers).
> 
> Thanks,
> Tobias
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Treated as `InlineUnsafeOps`. Just as good as before! :shipit:

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

Marked as reviewed by mchevalier (Committer).

PR Review: 
https://git.openjdk.org/valhalla/pull/2407#pullrequestreview-4242417363

Reply via email to