RFR: 8371385: compiler/escapeAnalysis/TestRematerializeObjects.java fails in case of -XX:-UseUnalignedAccesses

Damon Fenacci dfenacci at openjdk.org
Thu Nov 6 09:41:04 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

Looks good to me too.

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

Marked as reviewed by dfenacci (Committer).

PR Review: https://git.openjdk.org/jdk/pull/28171#pullrequestreview-3427187067


More information about the hotspot-compiler-dev mailing list