RFR: 8353330: Test runtime/cds/appcds/SignedJar.java fails in CDSHeapVerifier

Ioi Lam iklam at openjdk.org
Tue Apr 1 18:01:45 UTC 2025


Java core-lib changes in [JDK-8339280](https://bugs.openjdk.org/browse/JDK-8339280) for code-signing causes more java.lang.invoke classes to be initialized in the assembly phase.

Static fields like `java/lang/invoke/MethodHandleImpl$ArrayAccessor::OBJECT_ARRAY_SETTER` are just cached MethodHandles whose object identity doesn't matter. So it's OK for them to be stored into the AOT cache. Therefore, I added them to the CDSHeapVerifier exclusion lists.

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

Commit messages:
 - 8353330: Test runtime/cds/appcds/SignedJar.java fails in CDSHeapVerifier

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

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


More information about the hotspot-runtime-dev mailing list