Skip to content

Commit 6cdebf0

Browse files
author
Sonia Zaldana Calles
committed
8343599: Kmem limit and max values swapped when printing container information
Reviewed-by: sjohanss, sgehwolf
1 parent a672138 commit 6cdebf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/linux/cgroupV1Subsystem_linux.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ void CgroupV1MemoryController::print_version_specific_info(outputStream* st, jul
300300
jlong kmem_limit = kernel_memory_limit_in_bytes(phys_mem);
301301
jlong kmem_max_usage = kernel_memory_max_usage_in_bytes();
302302

303+
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_limit_in_bytes");
303304
OSContainer::print_container_helper(st, kmem_usage, "kernel_memory_usage_in_bytes");
304-
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_max_usage_in_bytes");
305-
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_limit_in_bytes");
305+
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_max_usage_in_bytes");
306306
}
307307

308308
char* CgroupV1Subsystem::cpu_cpuset_cpus() {

0 commit comments

Comments
 (0)