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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b23
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved: