RFR: 8276184: Exclude lambda proxy class from the CDS archive if its caller class is excluded [v5]
David Holmes
dholmes at openjdk.java.net
Wed Nov 10 22:41:35 UTC 2021
On Tue, 9 Nov 2021 19:56:13 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
>> The proposed patch has been redone completely to address the problem when a caller class is being excluded
>> from the archive, the associated lambda proxy class(es) was not excluded.
>>
>> The caller class could be excluded if:
>> - it is signed;
>> - it has been redefined after its lambda proxy class was created.
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
>
> fix a bug in Hello.java, update SignedJar.java to perform more checks on output
Why would you exclude a class more than once?
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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6205
More information about the hotspot-runtime-dev
mailing list