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

gc/stress/TestStressG1Humongous.java failed with "Cannot start testing because selected maximum heap is not large enough to contain more than 2 regions"

XMLWordPrintable

    • gc
    • x86_64
    • os_x_10.15

      The following test failed in the JDK18 CI:

      gc/stress/TestStressG1Humongous.java

      Here's a snippet from the log file:

      ----------System.out:(10/5277)----------
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+36-2086/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/classes/1/gc/stress/TestStressG1Humongous.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+36-2086/src.full/open/test/hotspot/jtreg/gc/stress:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+DeoptimizeALot -Xlog:gc=debug -Xmx1024m -XX:+UseG1GC -XX:G1HeapRegionSize=4m -Dtimeout=120 -Dthreads=3 -Dhumongoussize=1.1 -Dregionsize=4 gc.stress.TestStressG1HumongousImpl ]
      [2022-02-19T02:50:48.580346Z] Gathering output for process 80608
      [2022-02-19T02:50:48.743959Z] Waiting for completion for process 80608
      [2022-02-19T02:53:20.940166Z] Waiting for completion finished for process 80608
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+36-2086/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/classes/1/gc/stress/TestStressG1Humongous.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+36-2086/src.full/open/test/hotspot/jtreg/gc/stress:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13277/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3d55cbdd-66b7-45d3-83bb-e55c22d707fd/runs/ab30f45e-ae31-465e-81fb-b22ae8d88ec0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+DeoptimizeALot -Xlog:gc=debug -Xmx1024m -XX:+UseG1GC -XX:G1HeapRegionSize=16m -Dtimeout=120 -Dthreads=5 -Dhumongoussize=2.1 -Dregionsize=16 gc.stress.TestStressG1HumongousImpl ]
      [2022-02-19T02:53:20.959971Z] Gathering output for process 80638
      [2022-02-19T02:53:20.961622Z] Waiting for completion for process 80638
      [2022-02-19T03:02:11.931317Z] Waiting for completion finished for process 80638
      [2022-02-19T03:02:12.004022Z] Waiting for completion for process 80638
      [2022-02-19T03:02:12.016193Z] Waiting for completion finished for process 80638
      ----------System.err:(25/1362)----------
       stdout: [[53.032s][info][gc] Using G1
      [53.326s][debug][gc] ConcGCThreads: 3 offset 22
      [53.326s][debug][gc] ParallelGCThreads: 10
      [53.362s][debug][gc] Initialize mark stack with 4096 chunks, maximum 524288
      ];
       stderr: [Exception in thread "main" java.lang.RuntimeException: Cannot start testing because selected maximum heap is not large enough to contain more than 2 regions
      at gc.stress.TestStressG1HumongousImpl.getExpectedAmountOfObjects(TestStressG1Humongous.java:129)
      at gc.stress.TestStressG1HumongousImpl.run(TestStressG1Humongous.java:107)
      at gc.stress.TestStressG1HumongousImpl.main(TestStressG1Humongous.java:96)
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
      at gc.stress.TestStressG1Humongous.run(TestStressG1Humongous.java:77)
      at gc.stress.TestStressG1Humongous.main(TestStressG1Humongous.java:55)
      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.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

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: