Comment #2 on issue 256 by sgbeal: Please add a v8-context-is-shutting-down  
callback (or similar)
http://code.google.com/p/v8/issues/detail?id=256

Or even:

void Object::AddShutdownHandler( void (*)( Object *, void * userData ) )

and call those callbacks when an Object dies. We would need the guaranty  
that gc will
be called for any objects which have a shutdown handler (though the timing  
of the GC
is of course still unspecified). This approach makes Persistent::MakeWeak()  
largely
obsolete, as it's more generic and, IMO, more straightforward to use  
client-side.
Persistent() would still be useful for making the objects as do-not-delete,  
perhaps,
but a shutdown handler is better associated to the object handle itself,  
IMO, and not
the Persistent smart pointer (which is only smart as long as gc actually  
gets performed).

:-?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to