Integrated: 8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test
Axel Boldt-Christmas
aboldtch at openjdk.org
Tue Jan 31 07:57:08 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.
This pull request has now been integrated.
Changeset: cdb4ba96
Author: Axel Boldt-Christmas <aboldtch at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/cdb4ba9657ceae426281ead96aa4a125c7b97e6f
Stats: 19 lines in 1 file changed: 9 ins; 4 del; 6 mod
8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test
Reviewed-by: rcastanedalo, thartmann
-------------
PR: https://git.openjdk.org/jdk/pull/12284
More information about the hotspot-compiler-dev
mailing list