RFR: 8142334: Improve lazy initialization of java.lang.invoke

Claes Redestad claes.redestad at oracle.com
Wed Nov 11 14:32:06 UTC 2015


Paul,

On 2015-11-10 11:55, Paul Sandoz wrote:
> DirectMethodHandle
>>   682     private static @Stable NamedFunction[] FUNCTIONS = new NamedFunction[NF_LIMIT];
>
> Invokers
>>   442     private static @Stable NamedFunction[] FUNCTIONS = new NamedFunction[NF_LIMIT];
>
> MethodHandleImpl
>> 1627     private static @Stable NamedFunction[] FUNCTIONS = new NamedFunction[NF_LIMIT];
>
>
> To be complete you could add “final”, thus it makes it clear that @Stable refers specifically to the array element.
>
> Paul.

Thanks for having a look and catching this:

http://cr.openjdk.java.net/~redestad/8142334/webrev.03

- added final keyword to FUNCTIONS and HANDLES
- added @Stable to ARRAYS, FILL_ARRAYS, and FILL_ARRAY_TO_RIGHT

/Claes




More information about the core-libs-dev mailing list