RFR: 8349888: AOTMode=create crashes with EpsilonGC

Ioi Lam iklam at openjdk.org
Mon Feb 24 04:32:44 UTC 2025


During AOT cache assembly, some classes may become excluded for various reasons. In the bug report, we have a class that was excluded because it wasn't loaded from a JAR file.

When AOT-resolving lambda call sites, we already exclude all sites that **refer** to excluded classes. However, we didn't exclude class sites that **live in** an excluded class. This PR fixes that.

This bug only affects EpsilonGC, which doesn't perform any collection. It doesn't affect other "real" collectors. Please see JBS issue for details.

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

Commit messages:
 - 8349888: AOTMode=create crashes with EpsilonGC

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

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


More information about the hotspot-runtime-dev mailing list