RFR: 8310929: Optimization for Integer.toString [v12]
Quan Anh Mai
qamai at openjdk.org
Mon Sep 4 04:09:38 UTC 2023
On Thu, 20 Jul 2023 09:20:00 GMT, 温绍锦 <duke at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Long.java line 527:
>>
>>> 525: /**
>>> 526: * Places characters representing the long i into the
>>> 527: * character array buf. The characters are placed into
>>
>> Add the array bound check for the store of the characters.
>
> I added assert with reference to the implementation of StringUTF16#putChar, is this safe enough?
Can you use `VarHandle` here?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14699#discussion_r1314416729
More information about the core-libs-dev
mailing list