RFR: 8302154: Hidden classes created by LambdaMetaFactory can't be unloaded [v2]
Rémi Forax
forax at openjdk.org
Wed Feb 22 21:32:35 UTC 2023
On Wed, 22 Feb 2023 17:05:00 GMT, Kasper Nielsen <duke at openjdk.org> wrote:
>> Volker Simonis has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Remove assertions which insist on Lambda proxy classes being strongly linked to their class loader
>> - Removed unused import of STRONG und updated copyright year
>
> In all the places I've seen LambdaMetaFactory used, it is because of performance over reflection/non-static method handles. See, for example, https://www.optaplanner.org/blog/2018/01/09/JavaReflectionButMuchFaster.html. I believe Optaplanner is still using it.
>
> There is also quite a number of posts on StackOverflow on people trying to use LambdaMetafactory:
> https://stackoverflow.com/search?q=LambdaMetafactory
@kaspernielsen, i believe that now that hidden class + class data are part of the public API,
you do not need to use lambda metafactory directly. But it requires Java 17 not 8 or 11.
-------------
PR: https://git.openjdk.org/jdk/pull/12493
More information about the core-libs-dev
mailing list