RFR: 8299982: (bf) Buffer.checkIndex(int, int) should use Preconditions.checkIndex(int, int, BiFunction) [v4]

Brian Burkhalter bpb at openjdk.org
Thu Jan 26 18:52:45 UTC 2023


> Replace explicit check of indexes in `Buffer::checkIndex(int,int)` with a call to `Objects::checkIndex(int,int)` in order to improve the throughput of other methods which invoke `Buffer::checkIndex(int,int)`.

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

  8299982: Change exception formatter to a constant

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12174/files
  - new: https://git.openjdk.org/jdk/pull/12174/files/4729bd9f..e4ba7173

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

  Stats: 33 lines in 1 file changed: 22 ins; 7 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/12174.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12174/head:pull/12174

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


More information about the nio-dev mailing list