[foreign-memaccess] RFR: 8253243: Investigate ways to make MemorySegment::ofNativeRestricted more composable
Ty Young
youngty1997 at gmail.com
Wed Sep 16 20:25:36 UTC 2020
On 9/16/20 9:56 AM, Maurizio Cimadamore wrote:
> MemoryAddress.NULL
> .asSegmentRestricted(Long.MAX_VALUE)
> .withOwnerThread(null)
> .withAccessModes(READ | WRITE);
>
Is there any chance withOwnerThread could be changed so it doesn't
accept a null? A null mutable Thread variable could unintentionally be
interpreted as no-thread which may not be desirable.
More information about the panama-dev
mailing list