<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">It looks good.<br>
<br>
The only one nit is about the line:<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<pre><span class="new"> 160 System.out.println("Command line: "+Arguments.getJVMArgs() + Arguments.getJVMFlags());</span></pre>
<br>
If one or both of<span class="new"> Arguments.getJVMArgs() and
Arguments.getJVMFlags()</span>
return null<br>
(not sure if it is the case) then the output will have "null" like
this:<br>
"Command line: nullnull"<br>
<br>
Would it make sense to keep the original checks for non-null
strings?<br>
<br>
<br>
Thanks,<br>
Serguei<br>
<br>
<br>
On 11/11/13 11:28 AM, Staffan Larsen wrote:<br>
</div>
<blockquote
cite="mid:9C61822B-201F-4A73-B2F5-E2D82A06244A@oracle.com"
type="cite">
<pre wrap="">The problem here is that ‘jinfo -flags’ only looks at the command line, but if a user has changed a flag after the VM started (for example by using ‘jinfo -flag’) that new value does not show up.
I am changing the output so that ‘jinfo -flags’ now prints something like this:
Non-default VM flags: -XX:InitialHeapSize=268435456 -XX:MaxHeapSize=4294967296 -XX:+PrintGCDetails -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC
Command line: -XX:+PrintGCDetails
webrev: <a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~sla/6606002/webrev.00/">http://cr.openjdk.java.net/~sla/6606002/webrev.00/</a>
bug: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.java.net/browse/JDK-6606002">https://bugs.openjdk.java.net/browse/JDK-6606002</a>
Thanks,
/Staffan</pre>
</blockquote>
<br>
</body>
</html>