On Thu, 22 Jun 2023 02:03:55 GMT, Chen Liang <li...@openjdk.org> wrote:

> About @Glavo's VH suggestion: I think it is feasible, since the VH field is 
> not initialized until the method is used, so there should be no startup issue.

@liach This sounds good.

I'm thinking about refactoring `ByteArray` and `ByteArrayLittleEndian` to use 
`Unsafe` internally instead of `VarHandle` so we can use it in more places 
without worrying about affecting startup time.

I'm running some tests to determine the benefit of doing this.

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

PR Comment: https://git.openjdk.org/jdk/pull/14578#issuecomment-1602118074

Reply via email to