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