[webkit-dev] A question regarding to JavaScriptCore's garbage collection mechanism.

Geoffrey Garen ggaren at apple.com
Tue Mar 17 11:34:03 PDT 2009


> This code was tested against webkit svn. Anyone can help me explain  
> this behavior? Is it a bug of JavaScriptCore?

Most likely, the conservative nature of the garbage collector prevents  
the function from being reclaimed in this case.

You can step through JSC::Heap::collect() to see exactly why the  
object is not reclaimed.

Without further evidence, I wouldn't consider this a bug.

Geoff


More information about the webkit-dev mailing list