src/hotspot/share/gc/g1/g1RemSet.cpp
changeset 51332 c25572739e7c
parent 50113 caf115bb98ad
child 51494 1906adbef2dc
--- a/src/hotspot/share/gc/g1/g1RemSet.cpp	Wed Aug 08 10:21:23 2018 +0800
+++ b/src/hotspot/share/gc/g1/g1RemSet.cpp	Wed Aug 08 15:31:06 2018 +0200
@@ -282,13 +282,13 @@
 G1RemSet::G1RemSet(G1CollectedHeap* g1h,
                    G1CardTable* ct,
                    G1HotCardCache* hot_card_cache) :
+  _scan_state(new G1RemSetScanState()),
+  _prev_period_summary(),
   _g1h(g1h),
-  _scan_state(new G1RemSetScanState()),
   _num_conc_refined_cards(0),
   _ct(ct),
   _g1p(_g1h->g1_policy()),
-  _hot_card_cache(hot_card_cache),
-  _prev_period_summary() {
+  _hot_card_cache(hot_card_cache) {
 }
 
 G1RemSet::~G1RemSet() {
@@ -316,8 +316,8 @@
   _scan_objs_on_card_cl(scan_obj_on_card),
   _scan_state(scan_state),
   _worker_i(worker_i),
+  _cards_scanned(0),
   _cards_claimed(0),
-  _cards_scanned(0),
   _cards_skipped(0),
   _rem_set_root_scan_time(),
   _rem_set_trim_partially_time(),
@@ -976,8 +976,8 @@
                       uint n_workers,
                       uint worker_id_offset) :
       AbstractGangTask("G1 Rebuild Remembered Set"),
+      _hr_claimer(n_workers),
       _cm(cm),
-      _hr_claimer(n_workers),
       _worker_id_offset(worker_id_offset) {
   }