Re: RFR: 8291065: Creating a VarHandle for a static field triggers class initialization [v16]

2023-06-27 Thread Chen Liang
> This patch implements lazy initialization for VarHandle working on static > fields. It has a good initial call performance. > > We introduce a new internal API, `target()` to unpack a lazy VarHandle in VH > implementation methods. If called via MethodHandle, a barrier is added in the > Method

Re: RFR: 8291065: Creating a VarHandle for a static field triggers class initialization [v16]

2023-06-27 Thread Mandy Chung
On Wed, 28 Jun 2023 00:13:48 GMT, Chen Liang wrote: >> This patch implements lazy initialization for VarHandle working on static >> fields. It has a good initial call performance. >> >> We introduce a new internal API, `target()` to unpack a lazy VarHandle in VH >> implementation methods. If c