Integrated: 8261941: Use ClassLoader for unregistered classes during -Xshare:dump

Calvin Cheung ccheung at openjdk.java.net
Thu Sep 16 17:35:55 UTC 2021


On Fri, 10 Sep 2021 00:20:04 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Before this change, unregistered classes are loaded by the boot class loader during CDS dump time.
> This RFE creates an URLClassLoader based on the source specified in the classlist and uses the URLClassLoader to load the unregistered class during CDS dump time. The URLClassLoader instances will be cached in a hash table with the source as the key so that classes associated with the same source will be loaded by the same instance of class loader.
> 
> Passed tiers 1 - 4 testing.

This pull request has now been integrated.

Changeset: 12fa7073
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/12fa7073c58eb9f204bb60ab6192738f8aece626
Stats:     285 lines in 10 files changed: 169 ins; 114 del; 2 mod

8261941: Use ClassLoader for unregistered classes during -Xshare:dump

Reviewed-by: iklam, minqi

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

PR: https://git.openjdk.java.net/jdk/pull/5458


More information about the hotspot-runtime-dev mailing list