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

Vladimir Ivanov vlivanov at openjdk.org
Tue Apr 1 18:45:18 UTC 2025


On Tue, 1 Apr 2025 17:50:08 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

Looks good.

> // [D] Simple caches whose value doesn't matter.

Does the comment refer to "identity"?

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

Marked as reviewed by vlivanov (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24363#pullrequestreview-2733736905


More information about the hotspot-runtime-dev mailing list