Mercurial > hg > truffle
comparison src/share/vm/services/classLoadingService.cpp @ 1147:75bd253e25dd
6637203: Classunloading messages go to stdout rather than Xloggc file, causing hangs when stdout is closed
Summary: Decoupled TraceClassUnloading from verbose:gc, JVMTI_VERBOSE_GC and PrintGC[Details], making it settable in a manner identical to TraceClassLoading. Reverted an inadvertent change of TraceClassUnloading output in a previous changeset from gclog back to tty.
Reviewed-by: coleenp, dholmes, jmasa, poonam
author | ysr |
---|---|
date | Mon, 04 Jan 2010 14:51:26 -0800 |
parents | e018e6884bd8 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1146:504830073409 | 1147:75bd253e25dd |
---|---|
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 if (TraceClassUnloading) { | 129 if (TraceClassUnloading) { |
130 ResourceMark rm; | 130 ResourceMark rm; |
131 gclog_or_tty->print_cr("[Unloading class %s]", k->external_name()); | 131 tty->print_cr("[Unloading class %s]", k->external_name()); |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 void ClassLoadingService::notify_class_loaded(instanceKlass* k, bool shared_class) { | 135 void ClassLoadingService::notify_class_loaded(instanceKlass* k, bool shared_class) { |
136 DTRACE_CLASSLOAD_PROBE(loaded, k, shared_class); | 136 DTRACE_CLASSLOAD_PROBE(loaded, k, shared_class); |