Integrated: 8352579: Refactor CDS legacy optimization for lambda proxy classes

Ioi Lam iklam at openjdk.org
Thu Mar 27 00:27:12 UTC 2025


On Fri, 21 Mar 2025 06:56:20 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Since JDK 16, CDS has provided limited optimization for lambda expressions. This has been superseded by JEP 483 and is useful only when `-XX:+AOTClassLinking` is not enabled (which is the case for the default CDS archive, for compatibility reasons).
> 
> The "legacy lambda optimization" may eventually be removed. For the time being, we should consolidate the code into a single source code and clearly mark its uses. This way we can avoid confusion with the JEP 483 code for supporting lambdas (and other java.lang.invoke functionalities).

This pull request has now been integrated.

Changeset: 24833403
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/24833403b6b93ca464720f00de0e8bd5e1c140be
Stats:     1065 lines in 18 files changed: 557 ins; 458 del; 50 mod

8352579: Refactor CDS legacy optimization for lambda proxy classes

Reviewed-by: ccheung, matsaave

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

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


More information about the hotspot-dev mailing list