RFR: 8351334: [ubsan] memoryReserver.cpp:552:60: runtime error: applying non-zero offset 1073741824 to null pointer
Francesco Andreuzzi
duke at openjdk.org
Wed Aug 27 16:53:41 UTC 2025
On Wed, 27 Aug 2025 11:24:07 GMT, Afshin Zafari <azafari at openjdk.org> wrote:
> The minimum acceptable value was 0 where using it as address was problematic according to UBSAN.
> The acceptable value is changed to 64K.
>
> Tests:
> linux-x64 tier1
src/hotspot/share/memory/memoryReserver.cpp line 552:
> 550:
> 551: char* aligned_heap_base_min_address = align_up((char*)HeapBaseMinAddress, alignment);
> 552: assert(aligned_heap_base_min_address != 0,"Should not be 0");
Suggestion:
assert(aligned_heap_base_min_address != 0, "Should not be 0");
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26955#discussion_r2304663375
More information about the hotspot-dev
mailing list