[webkit-reviews] review requested: [Bug 41318] GC should reclaim garbage even when new objects are not being allocated rapidly : [Attachment 59959] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 28 16:45:27 PDT 2010


Nathan Lawrence <nlawrence at apple.com> has asked  for review:
Bug 41318: GC should reclaim garbage even when new objects are not being
allocated rapidly
https://bugs.webkit.org/show_bug.cgi?id=41318

Attachment 59959: Patch
https://bugs.webkit.org/attachment.cgi?id=59959&action=review

------- Additional Comments from Nathan Lawrence <nlawrence at apple.com>
It would be nice to have the GC run a few seconds after the last allocation. 
We can approximate this by having a timer start running at the beginning of
allocation, and resetting the timer whenever the heap is reset.  If there are a
number of allocations happening, then the timer will always get reset before it
times out and the GC is called.  If there are very few allocations happening
then the timer fire and we will collect the garbage.


More information about the webkit-reviews mailing list