RFR: 8371385: compiler/escapeAnalysis/TestRematerializeObjects.java fails in case of -XX:-UseUnalignedAccesses
Christian Hagedorn
chagedorn at openjdk.org
Thu Nov 6 06:40:06 UTC 2025
On Thu, 6 Nov 2025 03:11:14 GMT, Fei Yang <fyang at openjdk.org> wrote:
> Hi, Please consider this small change fixing a test failure.
>
> Two IR rules failed under -XX:-EliminateAllocations on platforms with -XX:-UseUnalignedAccesses.
> These are expecting MergeStores to combine and emit StoreL or StoreI. But the enablement of MergeStores
> depends on flag UseUnalignedAccesses [1]. So this simply add that condition to applyIf of the two IR rules.
>
> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/memnode.cpp#L3455
That looks good to me, thanks!
-------------
Marked as reviewed by chagedorn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28171#pullrequestreview-3426450868
More information about the hotspot-compiler-dev
mailing list