mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8205928: [TESTBUG] jdk/internal/platform/docker/TestDockerMemoryMetrics
Reviewed-by: stuefe
This commit is contained in:
parent
4dedba9ebe
commit
ce271e6fde
@ -95,10 +95,11 @@ public class MetricsMemoryTester {
|
||||
|
||||
private static void testKernelMemoryLimit(String value) {
|
||||
long limit = getMemoryValue(value);
|
||||
if (limit != Metrics.systemMetrics().getKernelMemoryLimit()) {
|
||||
long kmemlimit = Metrics.systemMetrics().getKernelMemoryLimit();
|
||||
if (kmemlimit != 0 && limit != kmemlimit) {
|
||||
throw new RuntimeException("Kernel Memory limit not equal, expected : ["
|
||||
+ limit + "]" + ", got : ["
|
||||
+ Metrics.systemMetrics().getKernelMemoryLimit() + "]");
|
||||
+ kmemlimit + "]");
|
||||
}
|
||||
System.out.println("TEST PASSED!!!");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user