RFR: 8257241: CDS should not handle disableEagerInitialization for archived lambda proxy classes

Mandy Chung mchung at openjdk.java.net
Tue Dec 1 20:05:57 UTC 2020


On Tue, 1 Dec 2020 19:30:45 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Please review this change which includes:
> 
> - If the `jdk.internal.lambda.disableEagerInitialization`property is enabled, the `InnerClassLambdaMetafactory` will not involve CDS to archive lambda proxy classes or to find them from an archive.
> 
> - Not passing the `initialize` (same as `!disableEagerInitialization`) to `LambdaProxyClassArchive.find` and eventually to the `JVM_LookupLambdaProxyClassFromArchive` function.
> 
> Testing:
> 
> - [x] all cds/appcds tests locally on linux-x64
> 
> - [x] tiers 1 - 4 (in progress)

The change looks okay.   Can you add a test to verify that it won't load from CDS archive if `disableEagerInitialization` is true?

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

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


More information about the core-libs-dev mailing list