[Webkit-unassigned] [Bug 31264] garbageCollectNow() should return a value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 10 08:47:21 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31264





--- Comment #4 from Yong Li <yong.li.webkit at gmail.com>  2009-11-10 08:47:20 PDT ---
(In reply to comment #2)
> (From update of attachment 42771 [details])
> Why?

The caller can use the return value to know if it's necessary to call it again.

Sometimes calling it only once doesn't clean up everything it can, because a JS
object may be referenced by another.

With this return value, before a thread is going to sleep, it can try to clean
up JS garbage as much as possible. 

And this return value doesn't hurt anyone who doesn't need it.

Consider why JSC::Heap::collect returns a boolean.

-- 
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