Is it possible to scavenge root and old_to_new concurrently?

26 views
Skip to first unread message

Jianxiao Lu

unread,
Jun 8, 2022, 6:46:12 AM6/8/22
to v8-dev
There are three phases in scavenger.
1. Scavenge root.
2. Scavenge old_to_new objects.
3. Drain out the copy and promotion lists.

Now, step 1  runs on the main thread. And 2 and 3 are packed as a task job and run in parallel (both main and worker thread).

I wonder if it possible to run step 2 on worker thread when running step 1 on main thread.

Thanks.

dinf...@google.com

unread,
Jun 8, 2022, 6:58:41 AM6/8/22
to v8-dev
Yes, I think root processing could be done in parallel to 2) and 3) as well. It just wasn't considered important enough yet (current plan is to use minor MC for production in the future).

Cheers,
Dominik

Jianxiao Lu

unread,
Jun 8, 2022, 7:12:11 AM6/8/22
to v8-dev
Thank you Dominik. Is there any design doc for the new minor-MC? Could you please share it to me?

Regards,
Jianxiao

dinf...@chromium.org

unread,
Jun 8, 2022, 9:27:01 AM6/8/22
to v8-dev
Sorry, I don't think there is a design doc yet unfortunately.
Reply all
Reply to author
Forward
0 new messages