Mercurial > hg > truffle
comparison src/share/vm/memory/universe.cpp @ 4073:53074c2c4600
7099849: G1: include heap region information in hs_err files
Reviewed-by: johnc, brutisso, poonam
author | tonyp |
---|---|
date | Tue, 08 Nov 2011 00:41:28 -0500 |
parents | 074f0252cc13 |
children | 09d00c18e323 |
comparison
equal
deleted
inserted
replaced
4072:8aae2050e83e | 4073:53074c2c4600 |
---|---|
1279 // Make the dependent methods not entrant (in VM_Deoptimize they are made zombies) | 1279 // Make the dependent methods not entrant (in VM_Deoptimize they are made zombies) |
1280 CodeCache::make_marked_nmethods_not_entrant(); | 1280 CodeCache::make_marked_nmethods_not_entrant(); |
1281 } | 1281 } |
1282 } | 1282 } |
1283 | 1283 |
1284 void Universe::print() { print_on(gclog_or_tty); } | 1284 void Universe::print() { |
1285 | 1285 print_on(gclog_or_tty); |
1286 void Universe::print_on(outputStream* st) { | 1286 } |
1287 | |
1288 void Universe::print_on(outputStream* st, bool extended) { | |
1287 st->print_cr("Heap"); | 1289 st->print_cr("Heap"); |
1288 heap()->print_on(st); | 1290 if (!extended) { |
1291 heap()->print_on(st); | |
1292 } else { | |
1293 heap()->print_extended_on(st); | |
1294 } | |
1289 } | 1295 } |
1290 | 1296 |
1291 void Universe::print_heap_at_SIGBREAK() { | 1297 void Universe::print_heap_at_SIGBREAK() { |
1292 if (PrintHeapAtSIGBREAK) { | 1298 if (PrintHeapAtSIGBREAK) { |
1293 MutexLocker hl(Heap_lock); | 1299 MutexLocker hl(Heap_lock); |
1299 | 1305 |
1300 void Universe::print_heap_before_gc(outputStream* st) { | 1306 void Universe::print_heap_before_gc(outputStream* st) { |
1301 st->print_cr("{Heap before GC invocations=%u (full %u):", | 1307 st->print_cr("{Heap before GC invocations=%u (full %u):", |
1302 heap()->total_collections(), | 1308 heap()->total_collections(), |
1303 heap()->total_full_collections()); | 1309 heap()->total_full_collections()); |
1304 heap()->print_on(st); | 1310 if (!PrintHeapAtGCExtended) { |
1311 heap()->print_on(st); | |
1312 } else { | |
1313 heap()->print_extended_on(st); | |
1314 } | |
1305 } | 1315 } |
1306 | 1316 |
1307 void Universe::print_heap_after_gc(outputStream* st) { | 1317 void Universe::print_heap_after_gc(outputStream* st) { |
1308 st->print_cr("Heap after GC invocations=%u (full %u):", | 1318 st->print_cr("Heap after GC invocations=%u (full %u):", |
1309 heap()->total_collections(), | 1319 heap()->total_collections(), |
1310 heap()->total_full_collections()); | 1320 heap()->total_full_collections()); |
1311 heap()->print_on(st); | 1321 if (!PrintHeapAtGCExtended) { |
1322 heap()->print_on(st); | |
1323 } else { | |
1324 heap()->print_extended_on(st); | |
1325 } | |
1312 st->print_cr("}"); | 1326 st->print_cr("}"); |
1313 } | 1327 } |
1314 | 1328 |
1315 void Universe::verify(bool allow_dirty, bool silent, VerifyOption option) { | 1329 void Universe::verify(bool allow_dirty, bool silent, VerifyOption option) { |
1316 if (SharedSkipVerify) { | 1330 if (SharedSkipVerify) { |