RFR: 8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test

Tobias Hartmann thartmann at openjdk.org
Mon Jan 30 11:30:16 UTC 2023


On Mon, 30 Jan 2023 08:05:57 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> 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.

Looks good to me.

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

Marked as reviewed by thartmann (Reviewer).

PR: https://git.openjdk.org/jdk/pull/12284


More information about the hotspot-compiler-dev mailing list