comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 3915:c2bf0120ee5d

7085906: Replace the permgen allocated sentinelRef with a self-looped end Summary: Remove the sentinelRef and let the last Reference in a discovered chain point back to itself. Reviewed-by: ysr, jmasa
author stefank
date Thu, 01 Sep 2011 16:18:17 +0200
parents eeae91c9baba
children 05550041d664
comparison
equal deleted inserted replaced
3913:27702f012017 3915:c2bf0120ee5d
4611 if (!_process_strong_tasks->is_task_claimed(G1H_PS_refProcessor_oops_do)) { 4611 if (!_process_strong_tasks->is_task_claimed(G1H_PS_refProcessor_oops_do)) {
4612 // We need to treat the discovered reference lists as roots and 4612 // We need to treat the discovered reference lists as roots and
4613 // keep entries (which are added by the marking threads) on them 4613 // keep entries (which are added by the marking threads) on them
4614 // live until they can be processed at the end of marking. 4614 // live until they can be processed at the end of marking.
4615 ref_processor()->weak_oops_do(&buf_scan_non_heap_roots); 4615 ref_processor()->weak_oops_do(&buf_scan_non_heap_roots);
4616 ref_processor()->oops_do(&buf_scan_non_heap_roots);
4617 } 4616 }
4618 4617
4619 // Finish up any enqueued closure apps (attributed as object copy time). 4618 // Finish up any enqueued closure apps (attributed as object copy time).
4620 buf_scan_non_heap_roots.done(); 4619 buf_scan_non_heap_roots.done();
4621 buf_scan_perm.done(); 4620 buf_scan_perm.done();