CDS crashes when the source of an InstanceKlass is NULL

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 19
    • Affects Version/s: 18
    • Component/s: hotspot
    • b07
    • x86
    • linux
    • Verified

      Directly reproduced on TIP by using a simple `build/linux-x86_64-server-slowdebug/images/jdk/bin/java -XX:ArchiveClassesAtExit=tmp.jsa -XX:DumpLoadedClassList=tmp.lst -version`.

      When dumping the klass `java/lang/invoke/DelegatingMethodHandle$Holder`, whose source is NULL, the `strcmp` logic in `ClassListWriter::write` will face a crash.

            Assignee:
            Yumin Qi
            Reporter:
            Xiaolin Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: