src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

changeset 1823
7666957bc44d
parent 1794
23b1b27ac76c
child 1826
79e419e5ea3b
equal deleted inserted replaced
1822:0bfd3fb24150 1823: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

mercurial