RFR: 8352579: Refactor CDS legacy optimization for lambda proxy classes [v3]

Ioi Lam iklam at openjdk.org
Fri Mar 21 18:39:31 UTC 2025


> 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).

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  Fixed infinite recursion compiler warning

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24145/files
  - new: https://git.openjdk.org/jdk/pull/24145/files/c8cfc851..87b34cee

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24145&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24145&range=01-02

  Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/24145.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24145/head:pull/24145

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


More information about the hotspot-dev mailing list