RFR: 8358330: AsmRemarks and DbgStrings clear() method may not get called before their destructor

Ashutosh Mehra asmehra at openjdk.org
Mon Jun 2 18:37:02 UTC 2025


This patch fixes a possible assert in debug builds if the allocation of memory for a CodeBlob fails when loading it from the AOT Code Cache.

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

Commit messages:
 - 8358330: AsmRemarks and DbgStrings clear() method may not get called before their destructor

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

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


More information about the hotspot-compiler-dev mailing list