comparison src/hotspot/share/gc/shared/cardTableRS.cpp @ 52321:31b159f30fb2

8180193: Make marking bitmap code available to other GCs Reviewed-by: shade, stefank
author rkennke
date Wed, 29 Aug 2018 20:15:09 +0200
parents 9d62da00bf15
children db0c3952de52
comparison
equal deleted inserted replaced
7:1fd941b100ae 8:59460ea64e54
328 } 328 }
329 invalidate(used_mr); 329 invalidate(used_mr);
330 } 330 }
331 331
332 332
333 class VerifyCleanCardClosure: public OopClosure { 333 class VerifyCleanCardClosure: public BasicOopIterateClosure {
334 private: 334 private:
335 HeapWord* _boundary; 335 HeapWord* _boundary;
336 HeapWord* _begin; 336 HeapWord* _begin;
337 HeapWord* _end; 337 HeapWord* _end;
338 protected: 338 protected:
428 if (begin < end) { 428 if (begin < end) {
429 MemRegion mr(begin, end); 429 MemRegion mr(begin, end);
430 VerifyCleanCardClosure verify_blk(gen_boundary, begin, end); 430 VerifyCleanCardClosure verify_blk(gen_boundary, begin, end);
431 for (HeapWord* cur = start_block; cur < end; cur += s->block_size(cur)) { 431 for (HeapWord* cur = start_block; cur < end; cur += s->block_size(cur)) {
432 if (s->block_is_obj(cur) && s->obj_is_alive(cur)) { 432 if (s->block_is_obj(cur) && s->obj_is_alive(cur)) {
433 oop(cur)->oop_iterate_no_header(&verify_blk, mr); 433 oop(cur)->oop_iterate(&verify_blk, mr);
434 } 434 }
435 } 435 }
436 } 436 }
437 cur_entry = first_dirty; 437 cur_entry = first_dirty;
438 } else { 438 } else {