From 2c69c41d48fddcbeb40a374f691b7e5faba3c99a Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Mon, 19 Dec 2022 18:06:19 +0000 Subject: [PATCH] 8298894: java/lang/Thread/virtual/stress/Skynet.java timed out and threw OutOfMemoryError Reviewed-by: eosterlund --- test/jdk/ProblemList-zgc.txt | 2 -- test/jdk/java/lang/Thread/virtual/stress/Skynet.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/jdk/ProblemList-zgc.txt b/test/jdk/ProblemList-zgc.txt index a877944450d..0cc1034440e 100644 --- a/test/jdk/ProblemList-zgc.txt +++ b/test/jdk/ProblemList-zgc.txt @@ -28,5 +28,3 @@ ############################################################################# jdk/internal/vm/Continuation/Fuzz.java#default 8298058 generic-x64 -java/lang/Thread/virtual/stress/Skynet.java#id0 8298894 macosx-x64 -java/lang/Thread/virtual/stress/Skynet.java#id1 8298894 macosx-x64 diff --git a/test/jdk/java/lang/Thread/virtual/stress/Skynet.java b/test/jdk/java/lang/Thread/virtual/stress/Skynet.java index 82bba078509..ed21adfecab 100644 --- a/test/jdk/java/lang/Thread/virtual/stress/Skynet.java +++ b/test/jdk/java/lang/Thread/virtual/stress/Skynet.java @@ -26,7 +26,7 @@ * @summary Stress test virtual threads with a variation of the Skynet 1M benchmark * @requires vm.continuations * @enablePreview - * @run main/othervm/timeout=300 Skynet + * @run main/othervm/timeout=300 -Xmx1g Skynet */ /* @@ -35,7 +35,7 @@ * @requires vm.gc.Z * @enablePreview * @run main/othervm/timeout=300 -XX:+UnlockDiagnosticVMOptions - * -XX:+ZVerifyViews -XX:ZCollectionInterval=0.01 Skynet + * -XX:+ZVerifyViews -XX:ZCollectionInterval=0.01 -Xmx1g Skynet */ import java.util.concurrent.BlockingQueue;