On Fri, 2 Jun 2023 16:29:13 GMT, Paul Sandoz <psan...@openjdk.org> wrote:

> I wonder if it is possible to transition from an lazy (indirect) VH to a 
> direct VH once initialized i.e., `checkAccessModeThenIsDirect` returns the 
> value of `initialized`. 

Sounds a good idea.  Once the class is initialized, the lazy VH becomes a 
direct VH that may help the performance.  In that case, the VarHandleGuards 
would need to ensure it links with the direct VH not the lazy VH.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13821#issuecomment-1574191781

Reply via email to