[Webkit-unassigned] [Bug 70995] The GC should be parallel
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 30 13:18:28 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=70995
--- Comment #24 from Sam Weinig <sam at webkit.org> 2011-10-30 13:18:28 PST ---
(In reply to comment #11)
> (In reply to comment #4)
> > I am not sure how relevant it is, but you may want to look at wtf/ParallelJobs.h. On the Mac it will use libdispatch, which can be fun.
>
> One big reason why not to use libdispatch or other such mechanisms: if anyone else uses them and we stop a WebKit thread due to GC whilst it is sitting inside of some libdispatch lock (or a lock of some dependency of libdispatch, like, say, malloc), then we deadlock the whole process.
>
> I think that even starting pthreads during a GC could be a dangerous game to play. Hence this code makes sure that it has a pool of threads started before any GC can happen.
That makes sense.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list