On Thu, 20 Jul 2023 09:20:00 GMT, 温绍锦 <d...@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

Reply via email to