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

Geoffrey Garen ggaren at apple.com
Thu Dec 5 10:26:29 PST 2013

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

Perhaps some of your objects are still reachable at time of quit.

Releasing the last reference to the JSContextGroupRef will force a call to finalize() for all objects. I suggest trying that.


More information about the webkit-dev mailing list