RFR: 8375654: Exclude all array classes from dynamic CDS archive

Ioi Lam iklam at openjdk.org
Thu Jan 22 17:31:32 UTC 2026


On Thu, 22 Jan 2026 17:19:22 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> Will this affect Leyden? In AOT code generation we store number of dimensions and Klass: https://github.com/openjdk/leyden/blob/premain/src/hotspot/share/code/aotCodeCache.cpp#L2399-L2402
> 
> When we load AOT code we assume that such array already exist - we use `k->array_klass_or_null(array_dim)`: https://github.com/openjdk/leyden/blob/premain/src/hotspot/share/code/aotCodeCache.cpp#L2475-L2480
> 
> There is comment there to create the array instead of just lookup. Should,d we use commented code after these changes?

This PR doesn't affect Leyden. The exclusion happens only for the dynamic archive. The AOT cache (which is the same as a static CDS archive) includes array classes so they can be referenced by AOT compiled Java methods. We don't plan to support AOT compiled methods for the dynamic archive.

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

PR Comment: https://git.openjdk.org/jdk/pull/29356#issuecomment-3785691478


More information about the hotspot-runtime-dev mailing list