JDK-8221896 : Uncommit space on memory mapped heaps
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-04-03
  • Updated: 2019-04-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
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.