Re: [webkit-dev] JSGlobalData GC collection thread lifetime if webview is recreated without application exit.

2012-05-25 Thread Mayur K
Hi All,
Thanks for the reply Geoff.
I am currently facing an issue where in after deleting the webview, but not
exiting the application, after some time the javascript gc thread is seg
faulting. The breakpoints that I have added are also not hitting. So I
think that gc thread is still active even though webview has been deleted.
Are my assumptions correct regarding the js gc thread?
One more query is that JSDOMWindowBase::commonJSGlobalData is a static
object. Again I do not see any one clearing it on webview deletion. Is this
correct behavior?
Thanks.
--Mayur.

On Wed, May 23, 2012 at 12:23 PM, Geoffrey Garen gga...@apple.com wrote:

 So now to my question : Is it required to delete JSGlobalData and kill the
 GC thread if we keep on re-creating the webview again and again without
 exiting the process?


 No.

 Geoff




-- 
Symbiangeek,Codekata  Webkitwiki all in one - http://flaminghorns.com
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] JSGlobalData GC collection thread lifetime if webview is recreated without application exit.

2012-05-25 Thread Geoffrey Garen
 So I think that gc thread is still active even though webview has been 
 deleted.
 Are my assumptions correct regarding the js gc thread?

No. There's no dedicated GC thread.

 One more query is that JSDOMWindowBase::commonJSGlobalData is a static 
 object. Again I do not see any one clearing it on webview deletion. Is this 
 correct behavior?

Yes.

Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] JSGlobalData GC collection thread lifetime if webview is recreated without application exit.

2012-05-23 Thread Mayur K
Hi All,
I have been studying the JS execution and noticed that the JSGlobalData is
stored in a static variable and never deleted.
I traced even the windows port and noticed one more thing, that the
JSGlobalData and the Heap class destructor are never called. As it is
static I assume that the JSGlobalData is cleaned up automatically on
process exit.
I realised that this would in turn have an effect if we delete the webview
and recreate it again. The JSGlobalData will still point to the old static
var.

So now to my question : Is it required to delete JSGlobalData and kill the
GC thread if we keep on re-creating the webview again and again without
exiting the process?

Thanks.
--Mayur.

-- 
Symbiangeek,Codekata  Webkitwiki all in one - http://flaminghorns.com
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] JSGlobalData GC collection thread lifetime if webview is recreated without application exit.

2012-05-23 Thread Geoffrey Garen
 So now to my question : Is it required to delete JSGlobalData and kill the GC 
 thread if we keep on re-creating the webview again and again without exiting 
 the process?

No.

Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev