RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

Thomas Stuefe stuefe at openjdk.org
Fri Nov 10 07:25:08 UTC 2023


On Thu, 9 Nov 2023 07:27:37 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix another windows error
>
> src/hotspot/share/services/diagnosticCommand.cpp line 1193:
> 
>> 1191:     output()->print_cr("Memory map dumped to \"%s\".", name);
>> 1192:   } else {
>> 1193:     output()->print_cr("Failed to open \"%s\" for writing.", name);
> 
> Don't you want to report errno here?

I'm always leery about relying on errno from wrapper functions or objects like this, unless they have an explicit channel to report the relevant errno. I looked at fileStream, I guess its okay here. Okay, I'll add it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16301#discussion_r1389011079


More information about the serviceability-dev mailing list