[jdk17u-dev] RFR: 8287011: Improve container information

Martin Doerr mdoerr at openjdk.org
Thu Oct 27 13:45:42 UTC 2022


On Thu, 27 Oct 2022 13:35:30 GMT, Lutz Schmidt <lucy at openjdk.org> wrote:

>> backport of 8287011
>
> src/hotspot/os/linux/cgroupV2Subsystem_linux.cpp line 188:
> 
>> 186: char* CgroupV2Subsystem::mem_swp_current_val() {
>> 187:   GET_CONTAINER_INFO_CPTR(cptr, _unified, "/memory.swap.current",
>> 188:                          "Swap currently used is: %s", "%s", mem_swp_current_str, 1024);
> 
> Would love to see 'K' instead of 1024. 'K' is declared in share/utilities/globalDefinitions.hpp
> This is just one of multiple occurrences. I do not mark all of them.

This could get changed upstream, but please not in a backport!

-------------

PR: https://git.openjdk.org/jdk17u-dev/pull/844


More information about the jdk-updates-dev mailing list