Hi Serguei, the problem is, that if I make the -gz flag a jlong argument, I cannot just use '-gz'. This causes DCmdArgument<jlong>::parse_value() to be called with a NULL string, which leads to an error. That is why a used a string argument in my code. But using a string when I really mean an integer seems strange too.
Best regards, Ralf -----Original Message----- From: [email protected] <[email protected]> Sent: Dienstag, 11. Februar 2020 20:42 To: Schmelter, Ralf <[email protected]>; Yasumasa Suenaga <[email protected]>; OpenJDK Serviceability <[email protected]> Cc: [email protected] Subject: Re: RFR(L) 8237354: Add option to jcmd to write a gzipped heap dump Hi Ralf, I'd suggest for the option format something like this: -gz[=level] where level is an int. The part [=level] is optional. The level is 0 by default (if it is not set). Thanks, Serguei
