RFR: 8352420: [ubsan] codeBuffer.cpp:984:27: runtime error: applying non-zero offset 18446744073709486080 to null pointer
Vladimir Kozlov
kvn at openjdk.org
Thu Mar 20 17:59:08 UTC 2025
On Wed, 19 Mar 2025 15:43:54 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> This PR addresses undefined behavior in CodeBuffer by making `verify_section_allocation` return early for a partially initialized CodeBuffer.
src/hotspot/share/asm/codeBuffer.hpp line 550:
> 548: initialize_misc(name);
> 549: _total_start = 0;
> 550: _total_size = 0;
May be we should move this initialization from `initialize()` to `initialize_misc()` so you don't need to do this here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24118#discussion_r2006175075
More information about the hotspot-compiler-dev
mailing list