RFR: 8276184: Exclude lambda proxy class from the CDS archive if its caller class is excluded [v5]

Calvin Cheung ccheung at openjdk.java.net
Wed Nov 10 23:00:35 UTC 2021


On Wed, 10 Nov 2021 22:38:15 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Why would you exclude a class more than once?
> 
Consider a caller_ik which is signed. The first time it was encountered for exclusion is in the `do_entry()` of `ExcludeDumpTimeSharedClasses`. The second time it was encountered is in `SystemDictionaryShared::cleanup_lambda_proxy_class_dictionary()`.
> It still seems a very awkward way to code this.
> 
> And the existing use of `warn_excluded` as a proxy for `return true` is not good.

If I change `warn_excluded` to a void function, the call sites in `check_for_exclusion_impl()` would be like the following:

if (!silent) {
    warn_excluded(...);
}
return true;

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

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


More information about the hotspot-runtime-dev mailing list