diff --git a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt index 362a58e750e..35953bcfffc 100644 --- a/test/jdk/ProblemList.txt +++ b/test/jdk/ProblemList.txt @@ -883,7 +883,6 @@ com/sun/jdi/InvokeHangTest.java 8218463 linux-al # jdk_util java/util/ServiceLoader/ReloadTest.java 8242935 generic-all -java/util/StringJoiner/StringJoinerTest.java 8246697 generic-all ############################################################################ diff --git a/test/jdk/java/util/StringJoiner/MergeTest.java b/test/jdk/java/util/StringJoiner/MergeTest.java index 40875eec76d..181a25d4447 100644 --- a/test/jdk/java/util/StringJoiner/MergeTest.java +++ b/test/jdk/java/util/StringJoiner/MergeTest.java @@ -26,7 +26,8 @@ * @bug 8017231 8020977 8054221 * @summary test StringJoiner::merge * @modules java.base/jdk.internal.util - * @run testng MergeTest + * @requires os.maxMemory > 4G + * @run testng/othervm -Xmx4g MergeTest */ import java.util.StringJoiner; diff --git a/test/jdk/java/util/StringJoiner/StringJoinerTest.java b/test/jdk/java/util/StringJoiner/StringJoinerTest.java index 833108e1316..cbc057ad3d1 100644 --- a/test/jdk/java/util/StringJoiner/StringJoinerTest.java +++ b/test/jdk/java/util/StringJoiner/StringJoinerTest.java @@ -25,7 +25,8 @@ * @bug 5015163 7172553 * @summary tests StringJoinerTest * @modules java.base/jdk.internal.util - * @run testng StringJoinerTest + * @requires os.maxMemory > 4G + * @run testng/othervm -Xmx4g StringJoinerTest * @author Jim Gish */ import java.util.ArrayList;