WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 84897
WebCore shouldn't call collectAllGarbage directly
https://bugs.webkit.org/show_bug.cgi?id=84897
Summary
WebCore shouldn't call collectAllGarbage directly
Mark Hahnenberg
Reported
2012-04-25 15:39:23 PDT
Currently, GCController calls Heap::collectAllGarbage directly, which leads to an overload of collections as the timer in GCController and the timer in GCActivityCallback compete for collection time and fire independently. As a result, we end up doing almost 600 full collections during an in-browser run of SunSpider, or 20 full collections on a single load of TechCrunch. We can do better by preventing WebCore from calling collectAllGarbage directly and instead going through Heap::reportAbandonedObjectGraph, since that is what WebCore is trying to do--notify the Heap that a lot of garbage may have just been generated when we left a page.
Attachments
Patch
(7.10 KB, patch)
2012-04-25 16:13 PDT
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
Patch
(7.99 KB, patch)
2012-04-25 16:55 PDT
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Hahnenberg
Comment 1
2012-04-25 16:13:27 PDT
Created
attachment 138891
[details]
Patch
Mark Hahnenberg
Comment 2
2012-04-25 16:29:15 PDT
With this patch, we do 133 GCs in a run of in-browser SunSpider running 20 iterations. We used to do 712 collections using this same testing setup. We also do 10 collections vs. 20 collections when loading TechCrunch.
Mark Hahnenberg
Comment 3
2012-04-25 16:30:03 PDT
I should also mention that neither our wall clock time nor our benchmark score for in-browser SunSpider are affected by this patch.
Build Bot
Comment 4
2012-04-25 16:46:36 PDT
Comment on
attachment 138891
[details]
Patch
Attachment 138891
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/12520704
Mark Hahnenberg
Comment 5
2012-04-25 16:55:23 PDT
Created
attachment 138899
[details]
Patch
Geoffrey Garen
Comment 6
2012-04-25 18:22:16 PDT
Comment on
attachment 138899
[details]
Patch r=me
WebKit Review Bot
Comment 7
2012-04-25 22:07:26 PDT
Comment on
attachment 138899
[details]
Patch Clearing flags on attachment: 138899 Committed
r115288
: <
http://trac.webkit.org/changeset/115288
>
WebKit Review Bot
Comment 8
2012-04-25 22:07:32 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug