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

MemorySegment::mapFromPath should take an offset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      When creating a segment from a mapped file it is not possible to specify a starting offset for the mapping -as a result the only option is to map the entire file, and then to slice the segment, which is inefficient in terms of memory utilization. To workaround this, the FIleChannel::map API takes an extra offset parameter - memory segment should do the same.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: