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

java/util/HashMap/WhiteBoxResizeTest.java fails in tier7 after JDK-8186958

XMLWordPrintable

      The following test failed in the JDK19 CI:

      java/util/HashMap/WhiteBoxResizeTest.java

      Here's a snippet from the linux-x64-debug log file:

      #section:testng
      ----------messages:(6/226)----------
      command: testng WhiteBoxResizeTest
      reason: User specified action: run testng WhiteBoxResizeTest
      Mode: agentvm
      Agent id: 10
      Additional opens to unnamed modules from @modules: java.base/java.util
      elapsed time (seconds): 23.708
      ----------configuration:(15/1660)----------
      Boot Layer
        class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar
        patch: java.base /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S14419/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/93d42b3f-c74b-4e29-acb7-1247cfd3a139/runs/fa4c9650-2c8f-4f25-b7a6-c63289b2cc25/testoutput/test-support/jtreg_open_test_jdk_jdk_util/patches/java.base

      Test Layer
        add opens: java.base/java.util ALL-UNNAMED
        class path: /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S14419/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/93d42b3f-c74b-4e29-acb7-1247cfd3a139/runs/fa4c9650-2c8f-4f25-b7a6-c63289b2cc25/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/java/util/HashMap/WhiteBoxResizeTest.d
                    /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+19-1259/src.full/open/test/jdk/java/util/HashMap

      ----------rerun:(31/5129)*----------

      <snip>

      ----------System.out:(738/93459)----------
      test WhiteBoxResizeTest.defaultCapacity(WhiteBoxResizeTest$$Lambda$518/0x00000000802582c0@4c2e2ef3): success
      test WhiteBoxResizeTest.defaultCapacity(WhiteBoxResizeTest$$Lambda$519/0x00000000802584d8@4345e2db): success
      test WhiteBoxResizeTest.defaultCapacity(WhiteBoxResizeTest$$Lambda$520/0x00000000802586f0@3679b336): success

      <snip>

      test WhiteBoxResizeTest.populatedCapacity("fwm1pa", 50331648, 67108864, WhiteBoxResizeTest$$Lambda$581/0x0000000080261798@3ff42ee9, WhiteBoxResizeTest$$Lambda$582/0x00000000802619b0@6a6d26fe): success
      test WhiteBoxResizeTest.populatedCapacity("fwm2pa", 50331648, 67108864, WhiteBoxResizeTest$$Lambda$583/0x0000000080261be0@57b94036, WhiteBoxResizeTest$$Lambda$584/0x0000000080261df8@49a4af4e): success
      test WhiteBoxResizeTest.populatedCapacity("fhmcpy", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$563/0x000000008025ef18@1307c1d3, WhiteBoxResizeTest$$Lambda$564/0x000000008025f138@68571a2c): failure
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.HashMap.resize(HashMap.java:710)
      at java.base/java.util.HashMap.putVal(HashMap.java:635)
      at java.base/java.util.HashMap.putMapEntries(HashMap.java:522)
      at java.base/java.util.HashMap.<init>(HashMap.java:492)
      at WhiteBoxResizeTest.lambda$genFakePopulatedCapacityCases$51(WhiteBoxResizeTest.java:272)
      at WhiteBoxResizeTest$$Lambda$563/0x000000008025ef18.get(Unknown Source)
      at WhiteBoxResizeTest.populatedCapacity(WhiteBoxResizeTest.java:318)
      at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000080264000.invokeVirtual(LambdaForm$DMH)
      at java.base/java.lang.invoke.LambdaForm$MH/0x0000000080267400.invoke(LambdaForm$MH)
      at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:158)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at org.testng.TestRunner$$Lambda$125/0x000000008012a228.accept(Unknown Source)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      test WhiteBoxResizeTest.populatedCapacity("fhm0pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$565/0x000000008025f360@47533a93, WhiteBoxResizeTest$$Lambda$566/0x000000008025f578@19bb0ffa): failure
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.HashMap.resize(HashMap.java:710)
      at java.base/java.util.HashMap.putVal(HashMap.java:635)
      at java.base/java.util.HashMap.putMapEntries(HashMap.java:522)
      at java.base/java.util.HashMap.putAll(HashMap.java:791)
      at WhiteBoxResizeTest.lambda$genFakePopulatedCapacityCases$54(WhiteBoxResizeTest.java:273)
      at WhiteBoxResizeTest$$Lambda$566/0x000000008025f578.accept(Unknown Source)
      at WhiteBoxResizeTest.populatedCapacity(WhiteBoxResizeTest.java:319)
      at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000080264000.invokeVirtual(LambdaForm$DMH)
      at java.base/java.lang.invoke.LambdaForm$MH/0x0000000080267400.invoke(LambdaForm$MH)
      at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:158)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at org.testng.TestRunner$$Lambda$125/0x000000008012a228.accept(Unknown Source)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      test WhiteBoxResizeTest.populatedCapacity("fhm1pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$567/0x000000008025f7a8@338422a1, WhiteBoxResizeTest$$Lambda$568/0x000000008025f9c0@72813ff4): failure
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.HashMap.resize(HashMap.java:710)
      at java.base/java.util.HashMap.putVal(HashMap.java:635)
      at java.base/java.util.HashMap.putMapEntries(HashMap.java:522)
      at java.base/java.util.HashMap.putAll(HashMap.java:791)
      at WhiteBoxResizeTest.lambda$genFakePopulatedCapacityCases$56(WhiteBoxResizeTest.java:274)
      at WhiteBoxResizeTest$$Lambda$568/0x000000008025f9c0.accept(Unknown Source)
      at WhiteBoxResizeTest.populatedCapacity(WhiteBoxResizeTest.java:319)
      at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000080264000.invokeVirtual(LambdaForm$DMH)
      at java.base/java.lang.invoke.LambdaForm$MH/0x0000000080267400.invoke(LambdaForm$MH)
      at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:158)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at org.testng.TestRunner$$Lambda$125/0x000000008012a228.accept(Unknown Source)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      test WhiteBoxResizeTest.populatedCapacity("fhm2pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$569/0x000000008025fbf0@4594cf9b, WhiteBoxResizeTest$$Lambda$570/0x0000000080260000@3e113642): failure
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.HashMap.resize(HashMap.java:710)
      at java.base/java.util.HashMap.putVal(HashMap.java:635)
      at java.base/java.util.HashMap.putMapEntries(HashMap.java:522)
      at java.base/java.util.HashMap.putAll(HashMap.java:791)
      at WhiteBoxResizeTest.lambda$genFakePopulatedCapacityCases$58(WhiteBoxResizeTest.java:275)
      at WhiteBoxResizeTest$$Lambda$570/0x0000000080260000.accept(Unknown Source)
      at WhiteBoxResizeTest.populatedCapacity(WhiteBoxResizeTest.java:319)
      at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000080264000.invokeVirtual(LambdaForm$DMH)
      at java.base/java.lang.invoke.LambdaForm$MH/0x0000000080267400.invoke(LambdaForm$MH)
      at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:158)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at org.testng.TestRunner$$Lambda$125/0x000000008012a228.accept(Unknown Source)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      test WhiteBoxResizeTest.populatedCapacity("flmcpy", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$571/0x0000000080260230@1ccdab06, WhiteBoxResizeTest$$Lambda$572/0x0000000080260450@43ac325e): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("flm0pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$573/0x0000000080260678@595e11b2, WhiteBoxResizeTest$$Lambda$574/0x0000000080260890@6e6eb578): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("flm1pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$575/0x0000000080260ac0@52dae466, WhiteBoxResizeTest$$Lambda$576/0x0000000080260cd8@300e2d23): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("flm2pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$577/0x0000000080260f08@7f4eca47, WhiteBoxResizeTest$$Lambda$578/0x0000000080261120@7ab2e81c): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("fwmcpy", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$579/0x0000000080261350@1432d8e2, WhiteBoxResizeTest$$Lambda$580/0x0000000080261570@571f42a): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("fwm1pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$581/0x0000000080261798@7038cd61, WhiteBoxResizeTest$$Lambda$582/0x00000000802619b0@6e98b86f): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.populatedCapacity("fwm2pa", 50331649, 134217728, WhiteBoxResizeTest$$Lambda$583/0x0000000080261be0@484aa866, WhiteBoxResizeTest$$Lambda$584/0x0000000080261df8@7e2f27cb): failure
      java.lang.OutOfMemoryError: Java heap space
      test WhiteBoxResizeTest.requestedCapacity("rhm1", 2, WhiteBoxResizeTest$$Lambda$585/0x00000000802627c8@5dae412f): success
      test WhiteBoxResizeTest.requestedCapacity("rhm2", 2, WhiteBoxResizeTest$$Lambda$586/0x00000000802629e0@7fd9ab6a): success
      test WhiteBoxResizeTest.requestedCapacity("rlm1", 2, WhiteBoxResizeTest$$Lambda$587/0x0000000080262bf8@6186dc4b): success

      <snip>

      test WhiteBoxResizeTest.tableSizeFor(1073741824, 1073741824): success
      test WhiteBoxResizeTest.tableSizeFor(1073741825, 1073741824): success
      test WhiteBoxResizeTest.tableSizeFor(2147483647, 1073741824): success

      ===============================================
      java/util/HashMap/WhiteBoxResizeTest.java
      Total tests run: 590, Passes: 576, Failures: 14, Skips: 0
      ===============================================

      ----------System.err:(10/528)----------
      java.lang.Exception: failures: 14
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:828)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 14


      test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 14


      The fix for the following bug:

      JDK-8186958 Need method to create pre-sized HashMap

      is included in jdk-19+19-1259-tier7 and it also modified:

      java/util/HashMap/WhiteBoxResizeTest.java

            smarks Stuart Marks
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: