RFR: 8299684: (bf) JNI direct buffer functions with large capacity behave unexpectedly [v5]
Brian Burkhalter
bpb at openjdk.org
Wed Jan 11 23:19:01 UTC 2023
On Wed, 11 Jan 2023 17:22:11 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> test/jdk/java/nio/jni/NewDirectByteBuffer.java line 30:
>>
>>> 28: * @summary Verify that JNI NewDirectByteBuffer throws IllegalArgumentException
>>> 29: * if the capacity is negative or greater than Integer::MAX_VALUE
>>> 30: * @run main/native NewDirectByteBuffer
>>
>> You may have missed the comments about @requires and wondering if this test will run on 32-bit, as it will attempt to malloc 2GB.
>
> I saw the comments but was deferring that.
Added **@requires** in 7f99faeebaea1dc55b592146aa3ba612bdb63d9e.
-------------
PR: https://git.openjdk.org/jdk/pull/11873
More information about the hotspot-dev
mailing list