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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: