Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235837

Memory access API refinements

XMLWordPrintable

    • b32

        Over the course of the RFR and CSR review, several naming-related issues and other minor refinements were pointed out:

        * There doesn't seem to be a predicate for "can I call close without an exception?" (isAlive && isAccessible) isn't sufficient.

        * Should MemoryAddress implement Comparable?

        * should we have a way to ask a Layout if its size is specified ?

        * should we merge MemoryLayouts and MemoryLayout?

        * MemoryAddress::offset() vs. MemoryAddress::offset(long) -- not much distance between these two semantically different operations

        * MemorySegment::isAccessible() -- as the A* word is overloaded, some other name should be found?

        * MemorySegment::acquire() -- replace with MemorySegment::fork?

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: