Thread safety check of MemorySegment

Ty Young youngty1997 at gmail.com
Wed Jul 22 10:29:21 UTC 2020


On 7/22/20 5:26 AM, Johannes Lichtenberger wrote:
> I'm also using a mapped memory segment. But I think at least we have the
> possibility to transfer ownership in Java 15, right? Thus, in my
> AutoClosable in the close() method I can simply transfer ownership to the
> current thread if the segment is still alive :-)


Nope. See this recent thread:


https://mail.openjdk.java.net/pipermail/panama-dev/2020-July/009929.html


>
> Kind regards
> Johanmes


More information about the panama-dev mailing list