RFR: 8142334: Improve lazy initialization of java.lang.invoke
Paul Sandoz
paul.sandoz at oracle.com
Tue Nov 10 10:55:17 UTC 2015
> On 9 Nov 2015, at 20:48, Claes Redestad <claes.redestad at oracle.com> wrote:
>
> Hi Peter,
>
> nice catch:
>
> http://cr.openjdk.java.net/~redestad/8142334/webrev.02
>
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.
More information about the core-libs-dev
mailing list