hotspot/src/share/vm/gc/g1/concurrentMark.inline.hpp
changeset 31994 3721b7aa3a0d
parent 31592 43f48e165466
child 32350 fec57eb3f599
equal deleted inserted replaced
31993:f4f6fec4906e 31994:3721b7aa3a0d
   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(