RFR: 8335392: C2 MergeStores: enhanced pointer parsing [v6]

Emanuel Peter epeter at openjdk.org
Tue Oct 29 18:29:08 UTC 2024


On Tue, 29 Oct 2024 17:42:01 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Woopsies. I think this was a left-over from something earlier. I was able to trigger this assert with this:
>> 
>> 
>>     static long[] arr201 = new long[1 << 28];
>> 
>>     public static void test201() {
>>         UNSAFE.putByte(arr201, Unsafe.ARRAY_LONG_BASE_OFFSET + (1L << 12),              (byte)64);
>>         UNSAFE.putByte(arr201, Unsafe.ARRAY_LONG_BASE_OFFSET + (1L << 12) + (1L << 30), (byte)64);
>>     }
>
> Good catch! Thanks for having a close look!

I added some regression tests for that case, and fixed the assert.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19970#discussion_r1821345558


More information about the hotspot-compiler-dev mailing list