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

java/util/StringJoiner/StringJoinerTest.java failed due to OOM

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 15, 16
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      x86_64
    • OS:
      os_x
    • Verification:
      Verified

      Backports

        Description

        The following test failed in the JDK16 CI:

        java/util/StringJoiner/StringJoinerTest.java

        Here's a snippet from the log file:

        ----------System.out:(60/3434)----------
        [TestNG] Running:
          java/util/StringJoiner/StringJoinerTest.java

        test StringJoinerTest.OOM1(): success
        test StringJoinerTest.OOM2(): success
        test StringJoinerTest.OOM3(): failure
        java.lang.OutOfMemoryError: Java heap space
        at java.base/java.lang.String.repeat(String.java:3578)
        at StringJoinerTest.OOM3(StringJoinerTest.java:352)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        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.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:832)
        test StringJoinerTest.OOM4(): success
        test StringJoinerTest.addAddAll(): success
        test StringJoinerTest.addAlladdAll(): success
        test StringJoinerTest.addCharSequence(): success
        test StringJoinerTest.addCharSequenceWithEmptyValue(): success
        test StringJoinerTest.addString(): success
        test StringJoinerTest.lengthWithCustomEmptyValue(): success
        test StringJoinerTest.noAddAndEmptyValue(): success
        test StringJoinerTest.setDelimiterNull(): success
        test StringJoinerTest.setEmptyValueNull(): success
        test StringJoinerTest.setPrefixNull(): success
        test StringJoinerTest.setSuffixNull(): success
        test StringJoinerTest.stringFromtoString(): success
        test StringJoinerTest.stringFromtoStringWithEmptyValue(): success
        test StringJoinerTest.testDelimiterCombinations(): success
        test StringJoinerTest.toStringWithCustomEmptyValue(): success

        ===============================================
        java/util/StringJoiner/StringJoinerTest.java
        Total tests run: 19, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(14/858)----------

        I'm starting this bug at P2 since this is a Tier1 failure.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jlaskey Jim Laskey
                  Reporter:
                  dcubed Daniel Daugherty
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: