RFR: 8299684: (bf) JNI direct buffer functions with large capacity behave unexpectedly [v4]
Alan Bateman
alanb at openjdk.org
Mon Jan 9 08:45:52 UTC 2023
On Mon, 9 Jan 2023 05:51:15 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Won't such large capacities trigger OOME?
The malloc might fail, in which case the value of NULL will be passed to NewDirectByteBuffer. It needs to check the return from malloc.
-------------
PR: https://git.openjdk.org/jdk/pull/11873
More information about the hotspot-dev
mailing list