RFR: 8299684: (bf) JNI direct buffer functions with large capacity behave unexpectedly [v17]

David Holmes dholmes at openjdk.org
Sun Jan 22 22:21:08 UTC 2023


On Fri, 20 Jan 2023 17:26:23 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Remove cast in `JNI::NewDirectByteBuffer`of `long` capacity to `int`, modify the constructor in question to accept a `long` capacity, and verify in the constructor that the  capacity does not overflow `int` range, throwing IAE If it does.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8299684: Allocate buffer of fixed size unity in illegalCapacities()

Nothing further from me. Thanks

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

Marked as reviewed by dholmes (Reviewer).

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


More information about the nio-dev mailing list