The AllocateMemory and Reallocat tests are both started with XX:MallocLimit=other:100m:oom.
These tests then expect OOM when allocating (or reallocating) 1000 * 1024 * 1024 bytes.
However, if the native memory used by the JVM for some reason is reduced, the allocations will succeed and the tests starts failing.
This seems brittle, it would be better to attempt allocating 101m of memory if the limit is 100m.
These tests then expect OOM when allocating (or reallocating) 1000 * 1024 * 1024 bytes.
However, if the native memory used by the JVM for some reason is reduced, the allocations will succeed and the tests starts failing.
This seems brittle, it would be better to attempt allocating 101m of memory if the limit is 100m.
- links to
-
Review(master)
openjdk/jdk/29429