RFR: 8352420: [ubsan] codeBuffer.cpp:984:27: runtime error: applying non-zero offset 18446744073709486080 to null pointer [v2]

Vladimir Kozlov kvn at openjdk.org
Fri Mar 21 15:32:09 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

Good.

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24118#pullrequestreview-2706376488


More information about the hotspot-compiler-dev mailing list