RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v24]
温绍锦
duke at openjdk.org
Mon Jun 26 09:57:31 UTC 2023
On Mon, 26 Jun 2023 09:26:02 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> 温绍锦 has updated the pull request incrementally with one additional commit since the last revision:
>>
>> remove JavaLangAccess#fastUUID
>
> src/java.base/share/classes/java/util/UUID.java line 515:
>
>> 513:
>> 514: try {
>> 515: return jla.newStringNoRepl(buf, StandardCharsets.ISO_8859_1);
>
> in java.base it's better to use `ISO_8859_1.INSTANCE` directly instead of `StandardCharsets.ISO_8859_1`.
> See [JDK-8234147](https://bugs.openjdk.org/browse/JDK-8234147)
done
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1241927553
More information about the core-libs-dev
mailing list