RFR: 8265602: -XX:DumpLoadedClassList should support custom loaders [v2]

Ioi Lam iklam at openjdk.java.net
Wed Aug 4 18:11:29 UTC 2021


On Wed, 4 Aug 2021 15:21:13 GMT, Yumin Qi <minqi at openjdk.org> wrote:

> Looks good!
> One concern is that this patch works for custom class in a plain jar file, but won't work with if the class loader has its own way to load class from more complicated location like "fat" jar, is it correct?

That's correct, I have filed [JDK-8271598](https://bugs.openjdk.java.net/browse/JDK-8271598) (CDS classlist file should support uber JARs) to handle this issue.

> test/hotspot/jtreg/runtime/cds/appcds/test-classes/DumpClassListApp.java line 2:
> 
>> 1: /*
>> 2:  * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
> 
> Is this a new file?

Yes, it is a new file. In my first commit I included 2016 in the copyright by mistake, so I removed it in the second commit.

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

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


More information about the hotspot-runtime-dev mailing list