equal
deleted
inserted
replaced
220 check_mark(addr); |
220 check_mark(addr); |
221 return _bm.par_clear_bit(heapWordToOffset(addr)); |
221 return _bm.par_clear_bit(heapWordToOffset(addr)); |
222 } |
222 } |
223 |
223 |
224 #undef check_mark |
224 #undef check_mark |
|
225 |
|
226 template<typename Fn> |
|
227 inline void CMMarkStack::iterate(Fn fn) { |
|
228 assert(_saved_index == _index, |
|
229 err_msg("saved index: %d index: %d", _saved_index, _index)); |
|
230 for (int i = 0; i < _index; ++i) { |
|
231 fn(_base[i]); |
|
232 } |
|
233 } |
225 |
234 |
226 inline void CMTask::push(oop obj) { |
235 inline void CMTask::push(oop obj) { |
227 HeapWord* objAddr = (HeapWord*) obj; |
236 HeapWord* objAddr = (HeapWord*) obj; |
228 assert(_g1h->is_in_g1_reserved(objAddr), "invariant"); |
237 assert(_g1h->is_in_g1_reserved(objAddr), "invariant"); |
229 assert(!_g1h->is_on_master_free_list( |
238 assert(!_g1h->is_on_master_free_list( |