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

Unmap the NIO file mappings with MapMode.PRIVATE on Linux before dumping a corefile.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • tbd
    • 12
    • hotspot
    • None
    • generic
    • linux

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jgeorge Jini George (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: