FMA-17 MemorySegment needs a isNative()

leerho leerho at gmail.com
Mon Apr 19 23:29:15 UTC 2021


It would be very useful to be able to determine from just a given
MemorySegment if it is off-heap or on-heap.  If a custom allocator gets a
request from a child process for a new segment, the allocator needs to know
whether that segment should be allocated on-heap or off-heap.

A simple *boolean isNative() would do the trick.*

Lee.


More information about the panama-dev mailing list