On Tue, Mar 17, 2009 at 2:59 PM, MJ <[email protected]> wrote: > > Actually I had one small question you guys might be able to answer. If > a user writes a JavaScript file, and has some JavaScript classes in > there and is creating new class objects in his or her script, is it > guaranteed that V8 will manage the memory for those objects and clean > it up. These classes are not bound to any C++ classes they are classes > defined in JavaScript.
Haha! No - it's not *guaranteed*. v8 might or might not call the GC. See this thread: http://groups.google.com/group/v8-users/browse_thread/thread/c2655be2958b34da/8891aadf8a4c643f?lnk=gst&q=beal+decision#8891aadf8a4c643f for more discussion/ranting about that. In short, if you need a *guaranty* (i do) then you've got to add your own supplemental GC on top of v8's. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
