src/hotspot/share/gc/g1/g1RemSet.cpp
changeset 51332 c25572739e7c
parent 50113 caf115bb98ad
child 51494 1906adbef2dc
equal deleted inserted replaced
51331:7939b3c4e408 51332:c25572739e7c
   280 };
   280 };
   281 
   281 
   282 G1RemSet::G1RemSet(G1CollectedHeap* g1h,
   282 G1RemSet::G1RemSet(G1CollectedHeap* g1h,
   283                    G1CardTable* ct,
   283                    G1CardTable* ct,
   284                    G1HotCardCache* hot_card_cache) :
   284                    G1HotCardCache* hot_card_cache) :
       
   285   _scan_state(new G1RemSetScanState()),
       
   286   _prev_period_summary(),
   285   _g1h(g1h),
   287   _g1h(g1h),
   286   _scan_state(new G1RemSetScanState()),
       
   287   _num_conc_refined_cards(0),
   288   _num_conc_refined_cards(0),
   288   _ct(ct),
   289   _ct(ct),
   289   _g1p(_g1h->g1_policy()),
   290   _g1p(_g1h->g1_policy()),
   290   _hot_card_cache(hot_card_cache),
   291   _hot_card_cache(hot_card_cache) {
   291   _prev_period_summary() {
       
   292 }
   292 }
   293 
   293 
   294 G1RemSet::~G1RemSet() {
   294 G1RemSet::~G1RemSet() {
   295   if (_scan_state != NULL) {
   295   if (_scan_state != NULL) {
   296     delete _scan_state;
   296     delete _scan_state;
   314   _ct(_g1h->card_table()),
   314   _ct(_g1h->card_table()),
   315   _pss(pss),
   315   _pss(pss),
   316   _scan_objs_on_card_cl(scan_obj_on_card),
   316   _scan_objs_on_card_cl(scan_obj_on_card),
   317   _scan_state(scan_state),
   317   _scan_state(scan_state),
   318   _worker_i(worker_i),
   318   _worker_i(worker_i),
       
   319   _cards_scanned(0),
   319   _cards_claimed(0),
   320   _cards_claimed(0),
   320   _cards_scanned(0),
       
   321   _cards_skipped(0),
   321   _cards_skipped(0),
   322   _rem_set_root_scan_time(),
   322   _rem_set_root_scan_time(),
   323   _rem_set_trim_partially_time(),
   323   _rem_set_trim_partially_time(),
   324   _strong_code_root_scan_time(),
   324   _strong_code_root_scan_time(),
   325   _strong_code_trim_partially_time() {
   325   _strong_code_trim_partially_time() {
   974 public:
   974 public:
   975   G1RebuildRemSetTask(G1ConcurrentMark* cm,
   975   G1RebuildRemSetTask(G1ConcurrentMark* cm,
   976                       uint n_workers,
   976                       uint n_workers,
   977                       uint worker_id_offset) :
   977                       uint worker_id_offset) :
   978       AbstractGangTask("G1 Rebuild Remembered Set"),
   978       AbstractGangTask("G1 Rebuild Remembered Set"),
       
   979       _hr_claimer(n_workers),
   979       _cm(cm),
   980       _cm(cm),
   980       _hr_claimer(n_workers),
       
   981       _worker_id_offset(worker_id_offset) {
   981       _worker_id_offset(worker_id_offset) {
   982   }
   982   }
   983 
   983 
   984   void work(uint worker_id) {
   984   void work(uint worker_id) {
   985     SuspendibleThreadSetJoiner sts_join;
   985     SuspendibleThreadSetJoiner sts_join;