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

Richard Reingruber rrich at openjdk.java.net
Tue Nov 3 12:41:54 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 because of JVMTI PopFrame / ForceEarlyReturn:
> 
> EAPopFrameNotInlinedReallocFailure
> EAPopInlinedMethodWithScalarReplacedObjectsReallocFailure
> EAForceEarlyReturnOfInlinedMethodWithScalarReplacedObjectsReallocFailure
> 
> For ZGC (so far) this is not 100% reliable.
> 
> Just ignoring the runs where the expected OOME was not raised was not accepted.
> 
> Summary of the now accepted solution:
> 
> - The 3 problematic test cases are skipped if ZGC is selected.
> 
> - They are also skipped if no OOME during object reallocation can be expected because allocations are not eliminated.
> 
> - In consumeAllMemory, as a last step, empty LinkedList nodes are created without long array to fill up small blocks of free memory.
> 
> - EATests.java is removed from the problem list for ZGC.

This pull request has now been integrated.

Changeset: 63461d59
Author:    Richard Reingruber <rrich at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/63461d59
Stats:     65 lines in 2 files changed: 37 ins; 8 del; 20 mod

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

Reviewed-by: cjplummer, sspitsyn, kvn

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

PR: https://git.openjdk.java.net/jdk/pull/775



More information about the hotspot-gc-dev mailing list