RFR: 8352579: Refactor CDS legacy optimization for lambda proxy classes [v4]
Matias Saavedra Silva
matsaave at openjdk.org
Mon Mar 24 16:39:13 UTC 2025
On Fri, 21 Mar 2025 23:47:46 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).
>
> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>
> @matias9927 offline comments - consolidated two functions with identical names
Thanks for addressing our offline conversation, looks good to me!
-------------
Marked as reviewed by matsaave (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24145#pullrequestreview-2711025876
More information about the hotspot-dev
mailing list