RFR: 8333833: UUID toString removes the use of ByteArrayLittleEndian [v2]

Chen Liang liach at openjdk.org
Sat Jun 8 13:52:13 UTC 2024


On Sat, 8 Jun 2024 06:40:39 GMT, Shaojin Wen <duke at openjdk.org> wrote:

>> After PR #16245, C2 optimizes stores into primitive arrays by combining values ​​into larger stores. In the UUID.toString method, ByteArrayLittleEndian can be removed, making the code more elegant and faster.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add comments

And in addition, VarHandle is not initialized unless it's necessary; thus, programs that use UUIDs but not VarHandle no longer need to initialize VarHandle. See #15386 where JDK startup has a performance degradation because it had to initialize VarHandle after using BALE.

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

PR Comment: https://git.openjdk.org/jdk/pull/19610#issuecomment-2156044329


More information about the core-libs-dev mailing list