RFR 8243491: Implementation of Foreign-Memory Access API (Second Incubator)

Chris Hegarty chris.hegarty at oracle.com
Thu Apr 30 13:33:48 UTC 2020


Maurizio,

> On 23 Apr 2020, at 21:33, Maurizio Cimadamore <maurizio.cimadamore at 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.


More information about the core-libs-dev mailing list