On Wed, 17 Aug 2022 22:33:03 GMT, Joe Darcy <da...@openjdk.org> wrote:

> The use of lambda's in the initialization of AccessFlag runs afoul of CDS in 
> some cases due to occurring early in the platform's initialization. Instead 
> of lambdas, using anonymous classes gets around the issue.
> 
> Clean tier1 and tier 2 Mach 5 run with these changes.

This is very unfortunate, the reason to use Lambdas was to avoid creating all 
the subclasses that would be generated by subclassing the location() method.  
At least in this form, the subclasses are not initialized until they are used.

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

PR: https://git.openjdk.org/jdk/pull/9911

Reply via email to