[foreign] 8208272: Scope.allocateArray needs to be more friendly to null or zero-length array
Henry Jen
henry.jen at oracle.com
Thu Jul 26 07:29:47 UTC 2018
Hi,
Please review the webrev[1] that,
- Return nullPointer when allocate 0 bytes
- Allow null or empty array in Scope.allocateArray
Also added a Pointer.asDirectByteBuffer method to convert a Pointer to a ByteBuffer, this is corresponding to JNI function newDirectByteBuffer. This is used by Tensorflow Java API.
Cheers,
Henry
[1] http://cr.openjdk.java.net/~henryjen/panama/8208272/webrev/
More information about the panama-dev
mailing list