On Sat, May 25, 2013 at 4:36 AM, Stephan Beal <[email protected]> wrote:
> > On Fri, May 24, 2013 at 9:58 PM, Jim Acquavella <[email protected]>wrote: > >> Thanks Stephan! I'm surprised and disappointed I can't guarentee my C++ >> objects will be destroyed. Can anyone from Google comment on this? There >> must be a way to force everything allocated to be released at shutdown, no?! >> > > That horse has been beat to death here a few times already. No - there is > no guaranty that v8 will ever call your dtors and (AFAIR) no 100% reliable > way to force it to. To be safe, bind a destructor function to your native > types. > Correct, in a nutshell: Finalizers are a very bad idea, use destructors. http://www.hpl.hp.com/techreports/2002/HPL-2002-335.pdf http://www.hpl.hp.com/personal/Hans_Boehm/popl03/slides.pdf -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
