[sgen] Spread the initial roots of workers
commit4ea34f62a557dc9171bf912f4c8b55694c63c1bb
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 21 Oct 2016 11:05:35 +0000 (21 14:05 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Thu, 19 Jan 2017 22:45:18 +0000 (20 00:45 +0200)
tree1baa6598ab930d0a2af98b4dd03f9f57d00e5c42
parent74435adcf9bef4027757a2f5aa61db0269894c8b
[sgen] Spread the initial roots of workers

A parallel phase starts with enqueuing of jobs and of sections to the distribute gray queue. In order to have a good work distribution we split jobs into multiple smaller jobs. We now do the same with the initial gray queue sections, by trying to always have a minimum number of starting sections.
mono/sgen/sgen-gray.c
mono/sgen/sgen-gray.h
mono/sgen/sgen-workers.c