diff --git a/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java b/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java index 60086dba327..3d4584714d7 100644 --- a/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java +++ b/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java @@ -36,6 +36,7 @@ * -XX:CompileCommand=inline,*String*::* * -XX:CompileCommand=dontinline,*StringBuilder*::ensureCapacityInternal * -XX:CompileCommand=dontinline,*String*::substring + * -XX:CompileCommand=MemLimit,*.*,0 * -XX:NodeCountInliningCutoff=220000 * -XX:DesiredMethodLimit=100000 * compiler.c2.TestScalarReplacementMaxLiveNodes