equal
deleted
inserted
replaced
115 |
115 |
116 // If compaction completely evacuated the young generation then we |
116 // If compaction completely evacuated the young generation then we |
117 // can clear the card table. Otherwise, we must invalidate |
117 // can clear the card table. Otherwise, we must invalidate |
118 // it (consider all cards dirty). In the future, we might consider doing |
118 // it (consider all cards dirty). In the future, we might consider doing |
119 // compaction within generations only, and doing card-table sliding. |
119 // compaction within generations only, and doing card-table sliding. |
120 GenRemSet* rs = gch->rem_set(); |
120 CardTableRS* rs = gch->rem_set(); |
121 Generation* old_gen = gch->old_gen(); |
121 Generation* old_gen = gch->old_gen(); |
122 |
122 |
123 // Clear/invalidate below make use of the "prev_used_regions" saved earlier. |
123 // Clear/invalidate below make use of the "prev_used_regions" saved earlier. |
124 if (gch->young_gen()->used() == 0) { |
124 if (gch->young_gen()->used() == 0) { |
125 // We've evacuated the young generation. |
125 // We've evacuated the young generation. |