--- a/src/hotspot/share/gc/g1/g1ParScanThreadState.cpp Mon Mar 05 11:16:23 2018 +0100
+++ b/src/hotspot/share/gc/g1/g1ParScanThreadState.cpp Mon Mar 05 11:32:17 2018 +0100
@@ -329,7 +329,7 @@
G1ParScanThreadState* G1ParScanThreadStateSet::state_for_worker(uint worker_id) {
assert(worker_id < _n_workers, "out of bounds access");
if (_states[worker_id] == NULL) {
- _states[worker_id] = new_par_scan_state(worker_id, _young_cset_length);
+ _states[worker_id] = new G1ParScanThreadState(_g1h, worker_id, _young_cset_length);
}
return _states[worker_id];
}