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

[TESTBUG] hotspot/jtreg:hotspot_appcds_dynamic fails when the JDK doesn't have default CDS archive

    Details

    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      Currently, in Oracle tier4-rt-appcds-dynamic, we run with

      jtreg -Dtest.dynamic.cds.archive=true test/hotspot/jtreg:hotspot_appcds_dynamic

      However, some JDK builds (e.g., cross-compiled aarch64 builds) may include a default CDS archive (usually found under $JAVA_HOME/lib/server/classes.jsa). This causes failures like:

      -----------
       stdout: [Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [An error has occurred while processing the shared archive file.
      Specified shared archive not found (/test/jdk-15/fastdebug/lib/server/classes.jsa).
      ]
       exitValue = 1

      java.lang.RuntimeException: 'Written dynamic archive' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
      at TestCommon.testDump(TestCommon.java:472)
      at InstrumentationTest.runTest(InstrumentationTest.java:137)
      at InstrumentationTest.main(InstrumentationTest.java:74)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: