mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7099849: G1: include heap region information in hs_err files
Reviewed-by: johnc, brutisso, poonam
This commit is contained in:
parent
83958f54fb
commit
44b419af51
11 changed files with 59 additions and 38 deletions
|
@ -1281,11 +1281,17 @@ void Universe::flush_dependents_on_method(methodHandle m_h) {
|
|||
}
|
||||
}
|
||||
|
||||
void Universe::print() { print_on(gclog_or_tty); }
|
||||
void Universe::print() {
|
||||
print_on(gclog_or_tty);
|
||||
}
|
||||
|
||||
void Universe::print_on(outputStream* st) {
|
||||
void Universe::print_on(outputStream* st, bool extended) {
|
||||
st->print_cr("Heap");
|
||||
heap()->print_on(st);
|
||||
if (!extended) {
|
||||
heap()->print_on(st);
|
||||
} else {
|
||||
heap()->print_extended_on(st);
|
||||
}
|
||||
}
|
||||
|
||||
void Universe::print_heap_at_SIGBREAK() {
|
||||
|
@ -1301,14 +1307,22 @@ void Universe::print_heap_before_gc(outputStream* st) {
|
|||
st->print_cr("{Heap before GC invocations=%u (full %u):",
|
||||
heap()->total_collections(),
|
||||
heap()->total_full_collections());
|
||||
heap()->print_on(st);
|
||||
if (!PrintHeapAtGCExtended) {
|
||||
heap()->print_on(st);
|
||||
} else {
|
||||
heap()->print_extended_on(st);
|
||||
}
|
||||
}
|
||||
|
||||
void Universe::print_heap_after_gc(outputStream* st) {
|
||||
st->print_cr("Heap after GC invocations=%u (full %u):",
|
||||
heap()->total_collections(),
|
||||
heap()->total_full_collections());
|
||||
heap()->print_on(st);
|
||||
if (!PrintHeapAtGCExtended) {
|
||||
heap()->print_on(st);
|
||||
} else {
|
||||
heap()->print_extended_on(st);
|
||||
}
|
||||
st->print_cr("}");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue