mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7106024: CMS: Removed unused code for precleaning in remark phase
Remove dead code. Reviewed-by: stefank, ysr
This commit is contained in:
parent
a3311881b5
commit
404bb0d0ac
3 changed files with 0 additions and 30 deletions
|
@ -3582,16 +3582,6 @@ void CMSCollector::checkpointRootsInitialWork(bool asynch) {
|
||||||
" or no bits are set in the gc_prologue before the start of the next "
|
" or no bits are set in the gc_prologue before the start of the next "
|
||||||
"subsequent marking phase.");
|
"subsequent marking phase.");
|
||||||
|
|
||||||
// Temporarily disabled, since pre/post-consumption closures don't
|
|
||||||
// care about precleaned cards
|
|
||||||
#if 0
|
|
||||||
{
|
|
||||||
MemRegion mr = MemRegion((HeapWord*)_virtual_space.low(),
|
|
||||||
(HeapWord*)_virtual_space.high());
|
|
||||||
_ct->ct_bs()->preclean_dirty_cards(mr);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Save the end of the used_region of the constituent generations
|
// Save the end of the used_region of the constituent generations
|
||||||
// to be used to limit the extent of sweep in each generation.
|
// to be used to limit the extent of sweep in each generation.
|
||||||
save_sweep_limits();
|
save_sweep_limits();
|
||||||
|
|
|
@ -662,23 +662,6 @@ MemRegion CardTableModRefBS::dirty_card_range_after_reset(MemRegion mr,
|
||||||
return MemRegion(mr.end(), mr.end());
|
return MemRegion(mr.end(), mr.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set all the dirty cards in the given region to "precleaned" state.
|
|
||||||
void CardTableModRefBS::preclean_dirty_cards(MemRegion mr) {
|
|
||||||
for (int i = 0; i < _cur_covered_regions; i++) {
|
|
||||||
MemRegion mri = mr.intersection(_covered[i]);
|
|
||||||
if (!mri.is_empty()) {
|
|
||||||
jbyte *cur_entry, *limit;
|
|
||||||
for (cur_entry = byte_for(mri.start()), limit = byte_for(mri.last());
|
|
||||||
cur_entry <= limit;
|
|
||||||
cur_entry++) {
|
|
||||||
if (*cur_entry == dirty_card) {
|
|
||||||
*cur_entry = precleaned_card;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
uintx CardTableModRefBS::ct_max_alignment_constraint() {
|
uintx CardTableModRefBS::ct_max_alignment_constraint() {
|
||||||
return card_size * os::vm_page_size();
|
return card_size * os::vm_page_size();
|
||||||
}
|
}
|
||||||
|
|
|
@ -435,9 +435,6 @@ public:
|
||||||
MemRegion dirty_card_range_after_reset(MemRegion mr, bool reset,
|
MemRegion dirty_card_range_after_reset(MemRegion mr, bool reset,
|
||||||
int reset_val);
|
int reset_val);
|
||||||
|
|
||||||
// Set all the dirty cards in the given region to precleaned state.
|
|
||||||
void preclean_dirty_cards(MemRegion mr);
|
|
||||||
|
|
||||||
// Provide read-only access to the card table array.
|
// Provide read-only access to the card table array.
|
||||||
const jbyte* byte_for_const(const void* p) const {
|
const jbyte* byte_for_const(const void* p) const {
|
||||||
return byte_for(p);
|
return byte_for(p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue