RFR: 8261941: Use ClassLoader for unregistered classes during -Xshare:dump [v4]

Calvin Cheung ccheung at openjdk.java.net
Wed Sep 15 18:04:50 UTC 2021


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

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  @iklam comment

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5458/files
  - new: https://git.openjdk.java.net/jdk/pull/5458/files/dd11b6db..6272a480

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5458&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5458&range=02-03

  Stats: 14 lines in 4 files changed: 1 ins; 11 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5458.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5458/head:pull/5458

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


More information about the hotspot-runtime-dev mailing list