Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Checking OpenJDK 6/7 sources it seems <code>-XX:+PrintGCDetails</code> is not flushing</p> <pre><code>TraceCPUTime::~TraceCPUTime() { if (_active) { bool valid = false; if (!_error) { double real_secs; // walk clock time double system_secs; // system time double user_secs; // user time for all threads double real_time, user_time, system_time; valid = os::getTimesSecs(&amp;real_time, &amp;user_time, &amp;system_time); if (valid) { user_secs = user_time - _starting_user_time; system_secs = system_time - _starting_system_time; real_secs = real_time - _starting_real_time; _logfile-&gt;print(" [Times: user=%3.2f sys=%3.2f, real=%3.2f secs] ", user_secs, system_secs, real_secs); } else { _logfile-&gt;print("[Invalid result in TraceCPUTime]"); } } else { _logfile-&gt;print("[Error in TraceCPUTime]"); } if (_print_cr) { _logfile-&gt;print_cr(""); } } } </code></pre> <p>and it's fixed in OpenJDK 8 thanks to this <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8004170" rel="nofollow">bug report</a>.</p> <pre><code>TraceCPUTime::~TraceCPUTime() { if (_active) { bool valid = false; if (!_error) { double real_secs; // walk clock time double system_secs; // system time double user_secs; // user time for all threads double real_time, user_time, system_time; valid = os::getTimesSecs(&amp;real_time, &amp;user_time, &amp;system_time); if (valid) { user_secs = user_time - _starting_user_time; system_secs = system_time - _starting_system_time; real_secs = real_time - _starting_real_time; _logfile-&gt;print(" [Times: user=%3.2f sys=%3.2f, real=%3.2f secs] ", user_secs, system_secs, real_secs); } else { _logfile-&gt;print("[Invalid result in TraceCPUTime]"); } } else { _logfile-&gt;print("[Error in TraceCPUTime]"); } if (_print_cr) { _logfile-&gt;print_cr(""); } _logfile-&gt;flush(); } } </code></pre> <p>Maybe it gets backported if someone files it against 6/7.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload