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

CDS ArchiveBuilder may reference unloaded classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • hotspot
    • b26

      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.

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

              Created:
              Updated:
              Resolved: