RFR: 8311207: Cleanup for Optimization for UUID.toString [v6]
温绍锦
duke at openjdk.org
Fri Jul 7 23:45:56 UTC 2023
On Fri, 7 Jul 2023 15:09:07 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> 温绍锦 has updated the pull request incrementally with one additional commit since the last revision:
>>
>> code style
>
> src/java.base/share/classes/java/util/UUID.java line 475:
>
>> 473: long msb = mostSigBits;
>> 474: byte[] buf = new byte[36];
>> 475: UNSAFE.putLongUnaligned(
>
> I understood that since UUID was not used during startup, that using VarHandles is the preferred abstraction.
Using VarHandle will be 10% slower than using Unsafe directly, I haven't found the reason yet
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14745#discussion_r1256615424
More information about the core-libs-dev
mailing list