RFR: 8255072: [TESTBUG] com/sun/jdi/EATests.java should not fail if expected VMOutOfMemoryException is not thrown
Chris Plummer
cjplummer at openjdk.java.net
Tue Oct 20 22:48:10 UTC 2020
On Tue, 20 Oct 2020 21:53:10 GMT, Richard Reingruber <rrich at openjdk.org> wrote:
> The following test cases try to provoke VMOutOfMemoryException during object reallocation:
>
> EAPopFrameNotInlinedReallocFailure
> EAPopInlinedMethodWithScalarReplacedObjectsReallocFailure
> EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjectsReallocFailure
>
> This is not 100% reliable therefore it should not be treated as test failure if no oom was raised.
If the test does not throw OOME, has it actually tested anything in that case? My concern with any test that allows for
what is suppose to be an occasional failure it that it will not detect if something breaks and causes that failure to
happen every time, often rendering the test useless.
-------------
PR: https://git.openjdk.java.net/jdk/pull/775
More information about the serviceability-dev
mailing list