mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8151693: Move print_heap_before/after_gc to debug level
Reviewed-by: brutisso, jwilhelm
This commit is contained in:
parent
33db96b04e
commit
2066a727e7
1 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue