RFR: 8308464: Shared array class should not always be loaded in boot loader

Ioi Lam iklam at openjdk.org
Mon Aug 28 21:19:17 UTC 2023


On Thu, 24 Aug 2023 19:35:25 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Please review this fix for using the appropriate class loader when loading a shared array class. The log output from -`Xlog:cds+unshareable=trace` is also updated to include the class loader information.
> 
> For example:
> before:
> `[0.203s][trace][cds,unshareable ] restore: ArrayKlassesApp`
> 
> after:
> `[0.203s][trace][cds,unshareable ] restore: ArrayKlassesApp with class loader: jdk.internal.loader.ClassLoaders$AppClassLoader`
> 
> Passed tiers 1- 3 tests.

LGTM.

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

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15421#pullrequestreview-1599139991


More information about the hotspot-dev mailing list