[foreign] 8208272: Scope.allocateArray needs to be more friendly to null or zero-length array
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Thu Jul 26 08:54:56 UTC 2018
Looks good.
-Sundar
On 26/07/18, 12:59 PM, Henry Jen wrote:
> 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