RFR: 8361209: (bf) Use CharSequence::getChars for StringCharBuffer bulk get methods [v3]

Brett Okken duke at openjdk.org
Wed Jul 16 22:57:46 UTC 2025


On Wed, 16 Jul 2025 22:19:53 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>  I am not entirely sure it's the one you had in mind.

:) yeah - I was thinking more like this:


    $Type$Buffer getArray(int index, $type$[] dst, int offset, int length) {
#if[char]
        assert !isAddressable();
#end[char]
        if (((long)length << $LG_BYTES_PER_VALUE$) > Bits.JNI_COPY_TO_ARRAY_THRESHOLD) {


But it was really just an idea to remove a check which should always be true now that overridden.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26251#discussion_r2211772426


More information about the nio-dev mailing list