RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v26]

温绍锦 duke at openjdk.org
Thu Jun 29 06:17:10 UTC 2023


On Tue, 27 Jun 2023 14:10:45 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> 温绍锦 has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix UUID.java import, rename jdk.util.HexDigits to jdk.util.Hex256 and make private constructor.
>
> src/java.base/share/classes/jdk/internal/util/Hex256.java line 38:
> 
>> 36: 
>> 37:     @Stable
>> 38:     public static final short[] DIGITS;
> 
> If UUID shows up in startup class loading this array would be a candidate for loading by CDS, as mentioned in earlier review comments. Please create a separate issue to evaluate and add the code to load the array using CDS.

now it's reuse the field of HexDigits.DIGITS

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1246155736


More information about the core-libs-dev mailing list