RFR: 8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test
Axel Boldt-Christmas
aboldtch at openjdk.org
Mon Jan 30 08:13:13 UTC 2023
In Generational ZGC, especially in Windows Github Actions `hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java` test have a tendency to timeout. Most of the time is spent trying to recover from allocation stalls, but the code is purposely triggering OOM exceptions.
This enhancement proposes rewriting the code which consumes all memory, by reducing the number of OOM recoveries by an order of magnitude. This change should not effect the intent of the test.
An alternative solution would instrumenting the WhiteboxAPI with the consume all memory functionality. However this would be a much more intrusive change.
-------------
Commit messages:
- 8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test
Changes: https://git.openjdk.org/jdk/pull/12284/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12284&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8301326
Stats: 19 lines in 1 file changed: 9 ins; 4 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/12284.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12284/head:pull/12284
PR: https://git.openjdk.org/jdk/pull/12284
More information about the hotspot-compiler-dev
mailing list