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

CDS ArchiveBuilder may reference unloaded classes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 17
    • hotspot
    • b26

    Description

      During CDS dump, we enter a safepoint (e.g., VM_PopulateDynamicDumpSharedSpace) and run ArchiveBuilder::gather_source_objs() to collect all classes to be dumped. However, some of these classes may belong to custom class loaders that are no longer referenced. While we are still inside the safepoint, concurrent GC operations may free these class loaders (see JDK-8267879). Thus ArchiveBuilder may end up referencing unloaded classes.

      Attachments

        Issue Links

          Activity

            People

              iklam Ioi Lam
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: