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

Use coredump_filter to dump the MAP_SHARED regions of a CDS archive into a corefile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 9, 10, 11
    • hotspot
    • generic
    • linux

      When a corefile gets created, the CDS archive regions mapped as MAP_SHARED do not get dumped into the corefile. To overcome this limitation, these regions get read in the Serviceability Agent (SA) directly from the classes.jsa in ps_core.c. For reading the regions in, the FileMapHeader structure (from src/hotspot/share/memory/filemap.hpp) is replicated in SA in ps_core.c. This replication is error prone and the copy in SA gets out of sync quickly w.r.t. the version in hotspot. This should be avoidable on Linux by setting the coredump_filter to dump the MAP_SHARED regions. (Need to explore the corresponding mechanism for other platforms). If there is no such mechanism for other platforms, then a lesser solution of including filemap.hpp in SA could be explored.

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

              Created:
              Updated:
              Resolved: