Maurizio, > On 23 Apr 2020, at 21:33, Maurizio Cimadamore > <maurizio.cimadam...@oracle.com> wrote: > > > Javadoc: > > http://cr.openjdk.java.net/~mcimadamore/8243491_v2/javadoc >
I’m still working my way through this update ( BTW it’s looking very good ), but an initial comment on the API. The access modes of MemorySegment are a nice addition, but while reading the API alone, I find myself wondering what access modes are held by segments returned by the static factories. Most hold all access modes but not all, e.g. read-only byte buffer. AND a mapped segment with mapping mode READ_ONLY ? Maybe it is worth specifying this? E.g something like: https://cr.openjdk.java.net/~chegar/foreign/segmentAccessModes/ -Chris.