Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 1388:7666957bc44d
6937142: G1: improvements to debugging output (S-M)
Summary: Various fixes to the G1 debugging output.
Reviewed-by: johnc, iveresov
author | tonyp |
---|---|
date | Tue, 30 Mar 2010 15:43:03 -0400 |
parents | 23b1b27ac76c |
children | 79e419e5ea3b |
comparison
equal
deleted
inserted
replaced
1387:0bfd3fb24150 | 1388:7666957bc44d |
---|---|
2940 // Add the heap region to the collection set and return the conservative | 2940 // Add the heap region to the collection set and return the conservative |
2941 // estimate of the number of live bytes. | 2941 // estimate of the number of live bytes. |
2942 void G1CollectorPolicy:: | 2942 void G1CollectorPolicy:: |
2943 add_to_collection_set(HeapRegion* hr) { | 2943 add_to_collection_set(HeapRegion* hr) { |
2944 if (G1PrintHeapRegions) { | 2944 if (G1PrintHeapRegions) { |
2945 gclog_or_tty->print_cr("added region to cset %d:["PTR_FORMAT", "PTR_FORMAT"], " | 2945 gclog_or_tty->print_cr("added region to cset " |
2946 "top "PTR_FORMAT", young %s", | 2946 "%d:["PTR_FORMAT", "PTR_FORMAT"], " |
2947 hr->hrs_index(), hr->bottom(), hr->end(), | 2947 "top "PTR_FORMAT", %s", |
2948 hr->top(), (hr->is_young()) ? "YES" : "NO"); | 2948 hr->hrs_index(), hr->bottom(), hr->end(), |
2949 hr->top(), hr->is_young() ? "YOUNG" : "NOT_YOUNG"); | |
2949 } | 2950 } |
2950 | 2951 |
2951 if (_g1->mark_in_progress()) | 2952 if (_g1->mark_in_progress()) |
2952 _g1->concurrent_mark()->registerCSetRegion(hr); | 2953 _g1->concurrent_mark()->registerCSetRegion(hr); |
2953 | 2954 |