RFR: 8352420: [ubsan] codeBuffer.cpp:984:27: runtime error: applying non-zero offset 18446744073709486080 to null pointer [v2]
Vladimir Kozlov
kvn at openjdk.org
Thu Mar 20 20:48:17 UTC 2025
On Thu, 20 Mar 2025 20:06:49 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.
>
> Doug Simon has updated the pull request incrementally with two additional commits since the last revision:
>
> - initialize _total_start with nullptr instead of 0
> - moved initialization of _total_start and _total_size
And you don't need them in [initialize(address code_start, csize_t code_size)](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/asm/codeBuffer.hpp#L487)
-------------
PR Review: https://git.openjdk.org/jdk/pull/24118#pullrequestreview-2704068027
More information about the hotspot-compiler-dev
mailing list