an opencl binding - zcl/panama

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Sun Jan 26 23:14:14 UTC 2020


On 26/01/2020 04:52, Michael Zucchi wrote:
> Yeah that sounds more convenient!  I knew all this before I wrote the 
> code that demonstrated it which is why I said it was a problem   For 
> this specific api it wasn't a huge problem at least and honestly I did 
> expect more pain from it.
>
> Although it makes it sound like you can't explicitly close at all, or 
> is it via another method like the upcall stub close?
>
Yeah - if you go down the shared path you give up ability to call 
close() - because there's no way you can be sure who else might be using 
the segment (w/o an explicit acquire).


> Another thing I noticed - you can pass segments to c without first 
> acquiring them.  It just seems an odd inconsistency. 
When you pass things to C no checks are done - liveness check, bounds 
check and ownership check.

Maurizio



More information about the panama-dev mailing list