JDK-8215027 : Unmap the NIO file mappings with MapMode.PRIVATE on Linux before dumping a corefile.
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux
  • CPU: generic
  • Submitted: 2018-12-07
  • Updated: 2024-07-10
  • Resolved: 2024-07-10
Related Reports
Relates :  
Description
The proposed fix of JDK-8200613 causes an increase in the size of the corefile dumped with CDS on Linux. 
The typical corefile size increase with this would include the following components at a high level:
* Any NIO file mapping with MapMode.PRIVATE.
* Any file mmap()-ed by any native library with MAP_PRIVATE.
* The read only CDS regions (ro and od): Of the order of a few MB.
* The shared strings CDS region. (typically less than 1 MB).
* 2 MB per native shared library (regions with ---p permissions 
mapped by the dynamic linker for better alignment and for keeping 
libraries efficiently shareable).
* The JDK 'modules' file. (About 140 MB).

To control the increase in the corefile size, the modules file is being unmapped as a part of the proposed fix for JDK-8200613.
We need to unmap the NIO file mappings with MapMode.PRIVATE too.
Comments
Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
10-07-2024

<Serviceability triage team>: This is an SA issue. Reassigning to Runtime for evaluation
10-07-2024