On Fri, 7 Jul 2023 15:09:07 GMT, Roger Riggs <rri...@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

Reply via email to