United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7022943 G1: improve logging to avoid interleaved numbers
JDK-7022943 : G1: improve logging to avoid interleaved numbers

Details
Type:
Bug
Submit Date:
2011-02-28
Status:
Closed
Updated Date:
2011-04-24
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b05)

Related Reports
Backport:

Sub Tasks

Description
The G1 logging currently does repeated calls to the gclog_or_tty->print() method before calling gclog_or_tty->print_cr(). This means that several threads can end up writing information in the same log line.

This makes it difficult to write tools that parse the log files. The performance team is currently experiencing problems with time stamps from the concurrent mark thread being written in the middle of G1 pause information.

                                    

Comments
WORK AROUND

U.
                                     
2011-02-28
SUGGESTED FIX

Use a small char* buffer and log intermediate information to that buffer. Then just do one call to gclog_or_tty->print_cr() when the information is complete.
*** (#1 of 1): [ UNSAVED ] ###@###.###
                                     
2011-02-28
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/c93aa6caa02f
                                     
2011-03-07
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/c93aa6caa02f
                                     
2011-03-21
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/c93aa6caa02f
                                     
2011-03-25



Hardware and Software, Engineered to Work Together