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

Brian Burkhalter bpb at openjdk.org
Wed Jul 16 22:15:41 UTC 2025


> For `CharBuffer`s created from a `CharSequence`, use `CharSequence.getChars` to perform bulk gets instead of successively copying single characters.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8361209: In getArray(), verify non-addressable buffer not a StringCharBuffer

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26251/files
  - new: https://git.openjdk.org/jdk/pull/26251/files/dce00b5a..3c88dac7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26251&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26251&range=02-03

  Stats: 18 lines in 1 file changed: 18 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/26251.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26251/head:pull/26251

PR: https://git.openjdk.org/jdk/pull/26251


More information about the nio-dev mailing list