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

Doug Simon dnsimon at openjdk.org
Thu Mar 20 10:27:52 UTC 2025


This PR addresses undefined behavior in CodeBuffer by making `verify_section_allocation` return early for a partially initialized CodeBuffer.

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

Commit messages:
 - short-circuit verify_section_allocation for partially initialized buffer

Changes: https://git.openjdk.org/jdk/pull/24118/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24118&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352420
  Stats: 3 lines in 2 files changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/24118.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24118/head:pull/24118

PR: https://git.openjdk.org/jdk/pull/24118


More information about the hotspot-compiler-dev mailing list