8151693: Move print_heap_before/after_gc to debug level

Reviewed-by: brutisso, jwilhelm
This commit is contained in:
Stefan Johansson 2016-03-14 09:10:42 +01:00
parent 33db96b04e
commit 2066a727e7

View file

@ -1093,19 +1093,19 @@ void Universe::print_heap_at_SIGBREAK() {
void Universe::print_heap_before_gc() { void Universe::print_heap_before_gc() {
LogHandle(gc, heap) log; LogHandle(gc, heap) log;
if (log.is_trace()) { if (log.is_debug()) {
log.trace("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); log.debug("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
ResourceMark rm; ResourceMark rm;
heap()->print_on(log.trace_stream()); heap()->print_on(log.debug_stream());
} }
} }
void Universe::print_heap_after_gc() { void Universe::print_heap_after_gc() {
LogHandle(gc, heap) log; LogHandle(gc, heap) log;
if (log.is_trace()) { if (log.is_debug()) {
log.trace("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); log.debug("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
ResourceMark rm; ResourceMark rm;
heap()->print_on(log.trace_stream()); heap()->print_on(log.debug_stream());
} }
} }