RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v7]
Glavo
duke at openjdk.org
Thu Jun 22 07:10:05 UTC 2023
On Thu, 22 Jun 2023 02:03:55 GMT, Chen Liang <liach at 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
More information about the core-libs-dev
mailing list