On Tue, 20 Aug 2024 07:05:54 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:
>> Simon Tooke has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - fix test failure >> - enabled TestJcmdPIDSubstitution.java test for Windows > > src/hotspot/os/windows/memMapPrinter_windows.cpp line 162: > >> 160: outputStream* st = session.out(); >> 161: os::print_os_info(st); >> 162: os::print_memory_info(st); > > The "danger" here is that both of these functions may bloat in the future and > print a lot more than today; and that we may want to use this printout in > places where we also print out OS info and memory info, and therefore get > duplicated printout (e.g. hs-err printing or jcmd VM.info). > > But I would print out the number of mappings you counted, and the total size > of committed regions. I have rolled my own "print_os_info" from the utility functions, but have left print_memory_info in for now - if you want, I will remove it entirely, but I think the information provided is valuable to readers of this report. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/20597#discussion_r1727463453