On Mon, Jun 13, 2011 at 10:13 AM, Nat <[email protected]> wrote:

> Just allocation is not allowed so as long as you don't allocate new object,
> modify properties, it should be okay. GCEpilogue's there exactly for this
> purpose.


i set InternalFields() to Null() values during gc so that future use of the
handle won't cause a dereference of an invalidated (or later re-allocated at
the same address) pointer. In my framework weak callbacks can be triggered
via e.g. a close() method for types which have strict cleanup requirements.
Those JS handlers can linger but their natives are destroyed.

In any case - unsetting InternalFields during GC appears to be legal (or it
works, anyway).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to