< prev index next >
src/share/vm/gc/g1/g1CollectedHeap.cpp
Print this page
rev 13288 : imported patch 8181917-refactor-ul-logstream
@@ -2493,14 +2493,14 @@
}
return false; // keep some compilers happy
}
void G1CollectedHeap::print_heap_regions() const {
- Log(gc, heap, region) log;
- if (log.is_trace()) {
- ResourceMark rm;
- print_regions_on(log.trace_stream());
+ LogTarget(Trace, gc, heap, region) lt;
+ if (lt.is_enabled()) {
+ LogStream ls(lt);
+ print_regions_on(&ls);
}
}
void G1CollectedHeap::print_on(outputStream* st) const {
st->print(" %-20s", "garbage-first heap");
@@ -2915,11 +2915,12 @@
if (!log_is_enabled(Trace, gc, task, stats)) {
return;
}
Log(gc, task, stats) log;
ResourceMark rm;
- outputStream* st = log.trace_stream();
+ LogStream ls(log.trace());
+ outputStream* st = &ls;
print_taskqueue_stats_hdr(st);
TaskQueueStats totals;
const uint n = num_task_queues();
< prev index next >