[Webkit-unassigned] [Bug 70995] The GC should be parallel
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 29 22:35:36 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=70995
--- Comment #11 from Filip Pizlo <fpizlo at apple.com> 2011-10-29 22:35:36 PST ---
(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.
--
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