RFR: 8299684: (bf) JNI direct buffer functions with large capacity behave unexpectedly [v5]
Brian Burkhalter
bpb at openjdk.org
Tue Jan 10 02:20:34 UTC 2023
> 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: Changes addressing reviewer comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/11873/files
- new: https://git.openjdk.org/jdk/pull/11873/files/d8e6c180..d2386a4b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=11873&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=11873&range=03-04
Stats: 107 lines in 4 files changed: 70 ins; 13 del; 24 mod
Patch: https://git.openjdk.org/jdk/pull/11873.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11873/head:pull/11873
PR: https://git.openjdk.org/jdk/pull/11873
More information about the hotspot-dev
mailing list