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

[TESTBUG] com/sun/jdi/EATests.java should not fail if expected VMOutOfMemoryException is not thrown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      generic
    • OS:
      generic

      Description

      The test cases fail because the expected com.sun.jdi.VMOutOfMemoryException due to reallocation failure is not thrown.

      The following test cases are affected:

      EAPopFrameNotInlinedReallocFailure
      EAPopInlinedMethodWithScalarReplacedObjectsReallocFailure
      EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjectsReallocFailure

      --------------------------------

      The following test is failing the JDK16 CI:

      com/sun/jdi/EATests.java#id0

      Here's a snippet from the log file on a Win* machine:

      6024ms] EAPopFrameNotInlined: passed
      [8070ms] EAPopFrameNotInlinedReallocFailure: passed
      java.lang.RuntimeException: Unexpected exception in test case EAPopInlinedMethodWithScalarReplacedObjectsReallocFailure
      at jdk.test.lib.Asserts.fail(Asserts.java:617)
      at EATestCaseBaseDebugger.run(EATests.java:443)
      at EATests.runTests(EATests.java:373)
      at TestScaffold.startTests(TestScaffold.java:431)
      at EATests.main(EATests.java:291)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.RuntimeException: PopFrame should have triggered an OOM exception in target: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at EAPopInlinedMethodWithScalarReplacedObjectsReallocFailure.runTestCase(EATests.java:2697)
      at EATestCaseBaseDebugger.run(EATests.java:438)
      ... 9 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException


      Here's a snippet from the log file on a Linux-X64 machine:

      [6720ms] EAForceEarlyReturnNotInlined: passed
      [6982ms] EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjects: passed
      IOException reading output of child java interpreter:Stream closed
      java.lang.RuntimeException: Unexpected exception in test case EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjectsReallocFailure
      at jdk.test.lib.Asserts.fail(Asserts.java:617)
      at EATestCaseBaseDebugger.run(EATests.java:443)
      at EATests.runTests(EATests.java:378)
      at TestScaffold.startTests(TestScaffold.java:431)
      at EATests.main(EATests.java:291)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.RuntimeException: ForceEarlyReturn should have triggered an OOM exception in target: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjectsReallocFailure.runTestCase(EATests.java:2953)
      at EATestCaseBaseDebugger.run(EATests.java:438)
      ... 9 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rrich Richard Reingruber
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: