RFR: 8371385: compiler/escapeAnalysis/TestRematerializeObjects.java fails in case of -XX:-UseUnalignedAccesses
Fei Yang
fyang at openjdk.org
Fri Nov 7 10:12:48 UTC 2025
On Thu, 6 Nov 2025 06:37:35 GMT, Christian Hagedorn <chagedorn 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!
@chhagedorn @dafedafe : Thanks for the reviews!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28171#issuecomment-3501641203
More information about the hotspot-compiler-dev
mailing list