[code-reflection] RFR: Lambda model uniqueness [v5]

Mourad Abbay mabbay at openjdk.org
Wed May 7 14:59:37 UTC 2025


On Tue, 6 May 2025 11:14:19 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> Lambdas that share the same proxy class, have the same implementation and therefore have the same code model generated by the compiler. In this PR, we share the code model across instances of the same proxy class. 
>> This also means we reduce execution time as we only need to invoke `opMethod` once for given proxy class.
>> With these changes we can compare lambda code model based on identity.
>
> Mourad Abbay has refreshed the contents of this pull request, and previous commits have been removed. Incremental views are not available.

I will work on lazy computation of lambda model and Quoted object in a separate PR.

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

PR Comment: https://git.openjdk.org/babylon/pull/420#issuecomment-2858926587


More information about the babylon-dev mailing list