RFR: 8291065: Creating a VarHandle for a static field triggers class initialization [v14]
Chen Liang
liach at openjdk.org
Thu Jun 29 01:55:31 UTC 2023
On Wed, 28 Jun 2023 19:15:02 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> I use this block to remove the overhead around MethodHandle and VarHandle infrastructure initialization (such as LF spinning) that is not related to any particular class; so that I measure only the impact of encountering a new class.
>
> Ah, implied by "... and initializes the lazy/non-lazy handles to prevent further creation costs" Could you also add a small comment above this block?
Done. Also commented on each line about what each call initializes.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13821#discussion_r1245997747
More information about the core-libs-dev
mailing list