Running test test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java on a cgroup v2 system and with podman (which uses crun by default) it fails the AttempOOM test case since it uses --memory-swappiness 0 which is not supported on cgroups v2.
----------System.err:(22/1176)----------
stdout: [];
stderr: [Error: OCI runtime error: crun: cannot set memory swappiness with cgroupv2
]
exitValue = 126
java.lang.RuntimeException: 'Entering AttemptOOM main' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:163)
at TestMemoryAwareness.testOOM(TestMemoryAwareness.java:134)
at TestMemoryAwareness.main(TestMemoryAwareness.java:65)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Entering AttemptOOM main' missing from stdout/stderr