RFR: 8299982: (bf) Buffer.checkIndex(int, int) should use Objects.checkIndex(int, int) [v3]

Roger Riggs rriggs at openjdk.org
Wed Jan 25 21:26:44 UTC 2023


On Wed, 25 Jan 2023 20:53:02 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)`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8299982: Add ForceInline annotation

Marked as reviewed by rriggs (Reviewer).

You may want to update the issue and title to match the change to use Preconditions.
Or say it is a generic performance improvement on range checks.

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

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


More information about the nio-dev mailing list