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

CDS BulkLoaderTest.java#dynamic fails with COH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • 24
    • b26

      Note: the test case is executed with -XX:+UseCompactObjectHeaders, but the JDK itself does not include a classes_coh.jsa

      ----------System.err:(20/1107)----------
       stdout: [[0.002s][info][cds] full module graph: disabled due to incompatible property: jdk.module.showModuleResolution=true
      [0.002s][info][cds] Specified shared archive not found (BulkLoaderTestApp.dynamic.jsa)
      Error occurred during initialization of VM
      Unable to use shared archive: invalid archive
      ];
       stderr: [Class data sharing is inconsistent with other specified options.
      ]
       exitValue = 1

      java.lang.RuntimeException: 'CDS archive has aot-linked classes. It cannot be used when archived full module graph is not used.' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
      at BulkLoaderTest.main(BulkLoaderTest.java:90)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1447)

            iklam Ioi Lam
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: