On Mar 5, 8:48 pm, Ondrej Zara <[email protected]> wrote:
> I was struggling with a very similar issue; please 
> seehttp://groups.google.com/group/v8-users/browse_thread/thread/3d4e7e80...

Quoting you from that article:

-------
I will probably file this as a bug, because it seems logical to me
that when a JS context is destroyed, all data objects in it should get
GC'ed. What is your opinion?
------

That's a show-stopper bug, IMO. If the dtor is NEVER called, not even
when the context closes down, that's simply a fatal error, IMO. i
can't wrap any classes in good conscience if i know that their dtors
(which are critical components in many C++ idioms) will never, ever,
ever be called. i'm willing to live with indeterminate timing garbage
collection, but the time must be finite - it must happen before v8
simply abandons the object. Without such a guaranty, a Persistent
handle is simply a glorified, guaranteed memory leak.

:-!

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to