equal
deleted
inserted
replaced
1080 tty->flush(); |
1080 tty->flush(); |
1081 } |
1081 } |
1082 } |
1082 } |
1083 |
1083 |
1084 void Universe::print_heap_before_gc() { |
1084 void Universe::print_heap_before_gc() { |
1085 LogHandle(gc, heap) log; |
1085 Log(gc, heap) log; |
1086 if (log.is_debug()) { |
1086 if (log.is_debug()) { |
1087 log.debug("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); |
1087 log.debug("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); |
1088 ResourceMark rm; |
1088 ResourceMark rm; |
1089 heap()->print_on(log.debug_stream()); |
1089 heap()->print_on(log.debug_stream()); |
1090 } |
1090 } |
1091 } |
1091 } |
1092 |
1092 |
1093 void Universe::print_heap_after_gc() { |
1093 void Universe::print_heap_after_gc() { |
1094 LogHandle(gc, heap) log; |
1094 Log(gc, heap) log; |
1095 if (log.is_debug()) { |
1095 if (log.is_debug()) { |
1096 log.debug("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); |
1096 log.debug("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections()); |
1097 ResourceMark rm; |
1097 ResourceMark rm; |
1098 heap()->print_on(log.debug_stream()); |
1098 heap()->print_on(log.debug_stream()); |
1099 } |
1099 } |