8258239: Shenandoah: Used wrong closure to mark concurrent roots

Reviewed-by: rkennke
This commit is contained in:
Zhengyu Gu 2020-12-14 17:55:23 +00:00
parent 1ff0f1673d
commit 2c3ae19a20

View File

@ -420,7 +420,7 @@ ShenandoahMarkConcurrentRootsTask::ShenandoahMarkConcurrentRootsTask(ShenandoahO
void ShenandoahMarkConcurrentRootsTask::work(uint worker_id) {
ShenandoahConcurrentWorkerSession worker_session(worker_id);
ShenandoahObjToScanQueue* q = _queue_set->queue(worker_id);
ShenandoahMarkResolveRefsClosure cl(q, _rp);
ShenandoahMarkRefsClosure cl(q, _rp);
_rs.oops_do(&cl, worker_id);
}