8334771: [TESTBUG] Run TestDockerMemoryMetrics.java with -Xcomp fails exitValue = 137

Reviewed-by: lmesnik, sspitsyn
This commit is contained in:
SendaoYan 2024-07-19 07:06:51 +00:00 committed by Serguei Spitsyn
parent 10fcad70b3
commit fa5ad700bb
2 changed files with 5 additions and 3 deletions
test/jdk/jdk/internal/platform/docker

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -48,6 +48,8 @@ public class MetricsMemoryTester {
case "softlimit":
testMemorySoftLimit(args[1]);
break;
default:
throw new RuntimeException("unknown args: " + args[0] + " for MetricsMemoryTester");
}
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -75,7 +75,7 @@ public class TestDockerMemoryMetrics {
}
testOomKillFlag("100m", true);
testMemoryFailCount("64m");
testMemoryFailCount("128m");
testMemorySoftLimit("500m","200m");