JDK-6637203 : Classunloading messages go to stdout rather than Xloggc file, causing hangs when stdout is closed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs10,1.4.2_11
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10,windows_xp
  • CPU: x86,sparc
  • Submitted: 2007-12-04
  • Updated: 2017-04-24
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u21Fixed 7Fixed hs17Fixed
Related Reports
Relates :  
Description
6.0U4 with Xloggc:file, CMS and CMSclassunloading.
The class unloading messages go to stdout rather than the 
GC logfile: [Unloading class .....]
Synopsis line changed from:-

"Classunloading messages of CMS go to stdout rather than Xloggc file"

to:-

"Classunloading messages go to stdout rather than Xloggc file, causing hangs when stdout is closed"

better reflecting the issue that the customer is concerned about,
and so as not to give one the misimpression that this was an
issue limited to the CMS collector (which it is not).

Comments
EVALUATION This changeset missed one "coupling" -- -Xloggc enables TraceClassUnloading -- which should also have been removed at that time and was missed. That is fixed in 7040410.
28-04-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/75bd253e25dd
09-01-2010

EVALUATION The change in behaviour might need to be explicitly release-noted for the JDK release in which this change first appears.
06-01-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/75bd253e25dd
05-01-2010

SUGGESTED FIX http://analemma.sfbay.sun.com/net/spot/workspaces/ysr/class_unload/webrev/
03-01-2010

EVALUATION Decouple TraceClassUnloading from PrintGC[Details] and -verbose:gc.
03-01-2010

WORK AROUND -XX:-TraceClassUnloading as last JVM option.
03-01-2010