On Thu, 16 Feb 2023 14:24:21 GMT, Maurizio Cimadamore <[email protected]>
wrote:
>> Adam Sotona has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> added 4-byte Unicode text to Utf8EntryTest
>
> src/java.base/share/classes/jdk/internal/classfile/impl/DirectCodeBuilder.java
> line 649:
>
>> 647: if (parentMap == null)
>> 648: parentMap = new IdentityHashMap<>();
>> 649: int[] table = parentMap.computeIfAbsent(parent, new
>> Function<CodeAttribute, int[]>() {
>
> Can use a lambda here?
I'll have to add relevant comment here.
There are many places in the Classfile API, which are on critical JDK bootstrap
path in the follow-up integrations and using lambdas or method references would
cause stack overflow during JDK bootstrap.
Using other words - these fragments cannot use lambdas as they suppose to
generate lambdas for JDK ;)
-------------
PR: https://git.openjdk.org/jdk/pull/10982