benjamin at webkit.org
Thu Apr 25 14:45:11 PDT 2013
On Thu, Apr 25, 2013 at 7:29 AM, Spencer Kohan <spencerkohan at gmail.com>wrote:
> running into long pauses for garbage collection as memory usage increases.
> I've been digging into the GC implementation in an effort to improve
> performance, and I've noticed some references to the compiler directive
> 'PARALLEL_GC' throughout the code, which makes me wonder if there's already
> support for multi-threaded GC, and if so how to enable it.
with the main thread.
When the engines requires to collect memory, the main thread stop and start
the garbage collection. If the space is large enough to justify spawning
threads, the garbage collection happens on as many core as needed to
minimize the collection time.
At the moment, the parallel GC is enabled on Mac OS X, iOS, GTK and
If you are not using the latest version of WebKit trunk, I suggest you to
update and try again. The garbage collector has improved lately, pause
times have been reduced a lot.
If you still see long pauses with the latest WebKit, it would be worth
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help