Integrated: 8299982: (bf) Buffer.checkIndex(int, int) should use Preconditions.checkIndex(int, int, BiFunction)
Brian Burkhalter
bpb at openjdk.org
Thu Jan 26 20:12:28 UTC 2023
On Tue, 24 Jan 2023 22:07:51 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> 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)`.
This pull request has now been integrated.
Changeset: c4278144
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c4278144bee667e2565a40f12a2a2c251d6cf3aa
Stats: 31 lines in 1 file changed: 24 ins; 2 del; 5 mod
8299982: (bf) Buffer.checkIndex(int, int) should use Preconditions.checkIndex(int, int, BiFunction)
Reviewed-by: uschindler, vtewari, rriggs, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/12174
More information about the nio-dev
mailing list