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

Uncommit space on memory mapped heaps

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 13
    • hotspot
    • gc

    Description

      Since kernel 2.6.38 Linux has the capability to "uncommit" space in memory mapped files (FALLOC_FL_PUNCH_HOLE, http://man7.org/linux/man-pages/man2/fallocate.2.html).

      This would allow collectors mapping the Java heap from a file (via e.g. AllocateHeapAt) for e.g. providing Java heap on NVDIMM uncommit unused space.

      ZGC will also use this facility planned with JEP 351: ZGC: Uncommit Unused Memory, however it is useful for all collectors.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: