hotspot/src/share/vm/memory/universe.cpp
changeset 11788 bef6166c683c
parent 10997 0be4b3be7197
child 12379 2cf45b79ce3a
equal deleted inserted replaced
11787:cfb5950b7706 11788:bef6166c683c
  1301     tty->cr();
  1301     tty->cr();
  1302     tty->flush();
  1302     tty->flush();
  1303   }
  1303   }
  1304 }
  1304 }
  1305 
  1305 
  1306 void Universe::print_heap_before_gc(outputStream* st) {
  1306 void Universe::print_heap_before_gc(outputStream* st, bool ignore_extended) {
  1307   st->print_cr("{Heap before GC invocations=%u (full %u):",
  1307   st->print_cr("{Heap before GC invocations=%u (full %u):",
  1308                heap()->total_collections(),
  1308                heap()->total_collections(),
  1309                heap()->total_full_collections());
  1309                heap()->total_full_collections());
  1310   if (!PrintHeapAtGCExtended) {
  1310   if (!PrintHeapAtGCExtended || ignore_extended) {
  1311     heap()->print_on(st);
  1311     heap()->print_on(st);
  1312   } else {
  1312   } else {
  1313     heap()->print_extended_on(st);
  1313     heap()->print_extended_on(st);
  1314   }
  1314   }
  1315 }
  1315 }
  1316 
  1316 
  1317 void Universe::print_heap_after_gc(outputStream* st) {
  1317 void Universe::print_heap_after_gc(outputStream* st, bool ignore_extended) {
  1318   st->print_cr("Heap after GC invocations=%u (full %u):",
  1318   st->print_cr("Heap after GC invocations=%u (full %u):",
  1319                heap()->total_collections(),
  1319                heap()->total_collections(),
  1320                heap()->total_full_collections());
  1320                heap()->total_full_collections());
  1321   if (!PrintHeapAtGCExtended) {
  1321   if (!PrintHeapAtGCExtended || ignore_extended) {
  1322     heap()->print_on(st);
  1322     heap()->print_on(st);
  1323   } else {
  1323   } else {
  1324     heap()->print_extended_on(st);
  1324     heap()->print_extended_on(st);
  1325   }
  1325   }
  1326   st->print_cr("}");
  1326   st->print_cr("}");