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

runtime/cds/appcds/TestSerialGCWithCDS.java fails on Windows

    XMLWordPrintable

    Details

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

      Description

      3. Exec with -XX:+UseSerialGC -Xmx2m
      Command line: [e:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\images\jdk\bin\java.exe -cp E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\classes\0\runtime\cds\appcds\TestSerialGCWithCDS.d;E:\jiefu\ws\jdk\test\hotspot\jtreg\runtime\cds\appcds;E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\classes\0\test\lib;E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\classes\0\test\hotspot\jtreg\runtime\cds\appcds;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\javatest.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\jtreg.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\junit.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\hamcrest.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\testng.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\jcommander.jar;E:\jiefu\ws\gitcode\dev-tools\jtreg\lib\guice.jar -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=e:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\tmp -Xshare:on -showversion -XX:SharedArchiveFile=E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\appcds-16h18m24s168.jsa -Dtest.timeout.factor=4.0 -cp E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\hello.jar -XX:+UnlockDiagnosticVMOptions -XX:VerifyArchivedFields=1 -XX:+UseSerialGC -Xmx256m -XX:ObjectAlignmentInBytes=64 -Xmx2m -Xlog:cds Hello ]
      [2021-10-06T08:18:25.938775800Z] Gathering output for process 83324
      [ELAPSED: 110 ms]
      [logging stdout to E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\runtime.cds.appcds.TestSerialGCWithCDS.java-0012-exec.stdout]
      [logging stderr to E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\runtime.cds.appcds.TestSerialGCWithCDS.java-0012-exec.stderr]
      [STDERR]

      [2021-10-06T08:18:26.048131900Z] Waiting for completion for process 83324
      [2021-10-06T08:18:26.048131900Z] Waiting for completion finished for process 83324
      [2021-10-06T08:18:26.048131900Z] Waiting for completion for process 83324
      [2021-10-06T08:18:26.048131900Z] Waiting for completion finished for process 83324
      STDERR:
       stdout: [[0.010s][info][cds] trying to map E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\appcds-16h18m24s168.jsa
      [0.010s][info][cds] Opened archive E:\jiefu\ws\jdk\build\windows-x86_64-server-fastdebug\test-support\jtreg_test_hotspot_jtreg_runtime_cds_appcds_TestSerialGCWithCDS_java\scratch\0\appcds-16h18m24s168.jsa.
      [0.010s][info][cds] Archive was created with UseCompressedOops = 1, UseCompressedClassPointers = 1
      [0.010s][info][cds] full module graph: disabled because archive was created without full module graph
      [0.010s][info][cds] Core region alignment: 65536
      [0.010s][info][cds] Reserved archive_space_rs [0x0000000800000000 - 0x0000000800c00000] (12582912) bytes
      [0.010s][info][cds] Reserved class_space_rs [0x0000000800c00000 - 0x0000000840c00000] (1073741824) bytes
      [0.010s][info][cds] Windows mmap workaround: releasing archive space.
      [0.010s][info][cds] Mapped static region #0 at base 0x0000000800000000 top 0x0000000800480000 (ReadWrite)
      [0.010s][info][cds] Mapped static region #1 at base 0x0000000800480000 top 0x0000000800c00000 (ReadOnly)
      [0.010s][info][cds] optimized module handling: enabled
      [0.010s][info][cds] full module graph: disabled
      Error occurred during initialization of VM
      GC triggered before VM initialization completed. Try increasing NewSize, current value 640K.
      ];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: 'Too small maximum heap' missing from stdout/stderr

              at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
              at TestSerialGCWithCDS.test(TestSerialGCWithCDS.java:116)
              at TestSerialGCWithCDS.main(TestSerialGCWithCDS.java:57)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
              at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Too small maximum heap' missing from stdout/stderr

        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: