Skip to content

Commit 3101406

Browse files
committed
8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun
Backport-of: ac6be165196457a26d837760b5f5030fe010d633
1 parent 2377a37 commit 3101406

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ private static void testMemorySoftLimit(String valueToSet, String expectedTraceV
114114
private static void testOOM(String dockerMemLimit, int sizeToAllocInMb) throws Exception {
115115
Common.logNewTestCase("OOM");
116116

117-
// add "--memory-swappiness 0" so as to disable anonymous page swapping.
118117
DockerRunOptions opts = Common.newOpts(imageName, "AttemptOOM")
119-
.addDockerOpts("--memory", dockerMemLimit, "--memory-swappiness", "0", "--memory-swap", dockerMemLimit);
118+
.addDockerOpts("--memory", dockerMemLimit, "--memory-swap", dockerMemLimit);
120119
opts.classParams.add("" + sizeToAllocInMb);
121120

122121
// make sure we avoid inherited Xmx settings from the jtreg vmoptions

0 commit comments

Comments
 (0)