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

[TESTBUG] compiler/aot/fingerprint/SelfChangedCDS.java fails when cds is disabled

    Details

    • Subcomponent:
    • Resolved In Build:
      b20

      Backports

        Description

        * Reproduce
        -------------------------------------
        bash configure --disable-cds ...
        make test TEST="compiler/aot/fingerprint/SelfChangedCDS.java"
        -------------------------------------

        * Symptom
        -------------------------------------
        [2019-10-21T09:04:57.836317Z] Gathering output for process 20161
        [stdout = ]
        [stderr = Shared spaces are not supported in this VM
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        ]
        [2019-10-21T09:04:57.845238Z] Waiting for completion for process 20161
        [2019-10-21T09:04:57.845290Z] Waiting for completion finished for process 20161
        STDERR:
         stdout: [];
         stderr: [Shared spaces are not supported in this VM
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        ]
         exitValue = 1

        java.lang.RuntimeException: 'Loading classes to share' missing from stdout/stderr

                at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
                at compiler.aot.fingerprint.CDSDumper.main(CDSDumper.java:66)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
                at java.base/java.lang.Thread.run(Thread.java:830)
        -------------------------------------

        * Fix
        -------------------------------------
        diff -r f87353679927 test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java
        --- a/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 14:04:16 2019 +0800
        +++ b/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 17:14:37 2019 +0800
        @@ -27,7 +27,7 @@
          * @library /test/lib /
          * @modules java.base/jdk.internal.misc
          * java.management
        - * @requires vm.aot
        + * @requires vm.aot & vm.cds
          * @build compiler.aot.fingerprint.SelfChanged
          * compiler.aot.AotCompiler
          *
        -------------------------------------

          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: