On Fri, 6 Jun 2025 19:04:40 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

>> Radim Vansa has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - Add more comments
>>  - Disable search table with dynamic CDS
>
> src/hotspot/share/utilities/packedTable.cpp line 49:
> 
>> 47:     assert((key & ~_key_mask) == 0, "key out of bounds");
>> 48:     assert((value & ~_value_mask) == 0, "value out of bounds: %x vs. %x 
>> (%x)", value, _value_mask, ~_value_mask);
>> 49:     *reinterpret_cast<uint64_t*>(data + offset) = 
>> static_cast<uint64_t>(key) | (static_cast<uint64_t>(value) << _value_shift);
> 
> How does this line not get a signal for unaligned write?

>From what I could find, strict alignment checking must be explicitly enabled 
>an aarch64. x86_64 does not require alignment either. In both cases, there 
>might be a performance penalty.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24847#discussion_r2135145604

Reply via email to