Garbage collection in javascript (GWT)

313 views
Skip to first unread message

Bhumika Thaker

unread,
Jul 10, 2013, 1:08:27 PM7/10/13
to google-we...@googlegroups.com
I want to know that how java script object is collected by GC? so I goggled but could not find any satisfied answers. The question is related to GWT code, as we know that gwt compile java code into javascript. so how it will use GC mechanism in it?

Just example : There is four screen on my application like Screen1....3, those screens are set by navigation on main vertical panel, when any screen switch from screen1 to 2 , screen2 to 3 etc. every time It will clear first vertical panel then create new instance of screen and add into main vertical panel. so when clear method called, it will do  Garbage collection for added screens as main vertical panel is no longer refer them. I mean those screen does not have any reference of GUI Context.

Thanks & regards,
Bhumika

Jens

unread,
Jul 10, 2013, 1:56:48 PM7/10/13
to google-we...@googlegroups.com
Take a read: 


In short: If you remove a widget from your UI and your code does not hold any reference to this widget anymore, it will be GC'd. 

-- J.

Bhumika Thaker

unread,
Jul 10, 2013, 11:09:46 PM7/10/13
to google-we...@googlegroups.com
Thank you...



--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/8eHAJOvEIuc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages