[webkit-dev] [JSCore] No call to finalize() via Garbage Collector ?

Manuel BACHMANN manuel.bachmann at open.eurogiciel.org
Thu Dec 5 08:25:18 PST 2013


Hi folks,

I have some JS objects having a finalize() method, which as you know should
be called when the object is destroyed (i.e. by the engine garbage
collector). The app itself renders through Webkit.

When I quit the application however, I see that the webkit garbage
collector is called via JSGarbageCollect(), but the finalize() methods are
never executed.

I read JSBase.cpp in Webkit source code, which implements
JSGarbageCollect() ; I may lack some insights, but it doesn't seem to try
to call finalize() to me.

Shouldn't it do that ? Or maybe it does, but is broken due to some
bug/corner case ?
-- 
Regards,

*Manuel BACHMANN*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20131205/e3f1ba48/attachment.html>


More information about the webkit-dev mailing list