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

runtime/cds/appcds/TestDumpClassListSource.java fails on platforms without AppCDS custom class loaders support

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      The failure was first observed on x86_32.
      ```
      Command line: [/home/jdk/build/linux-x86-server-fastdebug/images/jdk/bin/java -cp /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/classes/0/runtime/cds/appcds/TestDumpClassListSource.d:/home/jdk/test/hotspot/jtreg/runtime/cds/appcds:/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/classes/0/test/lib:/home/jdk/test/lib:/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/classes/0/test/hotspot/jtreg/runtime/cds/appcds:/opt/jtreg/lib/javatest.jar:/opt/jtreg/lib/jtreg.jar -Xshare:dump -XX:SharedClassListFile=test-classlist.list -XX:SharedArchiveFile=test-hello.jsa -cp /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/scratch/0/test-hello.jar ClassListWithCustomClassNoSource 3 ]
      [2022-01-22T08:43:15.974046758Z] Gathering output for process 1849
      [ELAPSED: 198 ms]
      [logging stdout to /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/scratch/0/runtime.cds.appcds.TestDumpClassListSource.java-0004-custom-dump.stdout]
      [logging stderr to /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/scratch/0/runtime.cds.appcds.TestDumpClassListSource.java-0004-custom-dump.stderr]
      [STDERR]
      An error has occurred while processing class list file test-classlist.list 723:32.
      AppCDS custom class loaders not supported on this platform:
      Hello id: 701 super: 0 source: /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestDumpClassListSource_java/scratch/0/test-hello.jar
                                     ^

      STDERR:
      java.lang.RuntimeException: Archive file test-hello.jsa should be created
              at TestDumpClassListSource.checkFileExistence(TestDumpClassListSource.java:87)
              at TestDumpClassListSource.main(TestDumpClassListSource.java:210)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:577)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
              at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Archive file test-hello.jsa should be created
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Archive file test-hello.jsa should be created
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: