On Wed, Jun 15, 2011 at 4:19 PM, Nat <[email protected]> wrote:

> The problem with keeping Isolate around with Handle is that Isolate
> reference is a pointer not a handle. There is no guarantee that Isolate life
> will be longer than that of handles and it won't be easy to know whether the
> pointer to Isolate still valid or not.


A problem arguably worse than an invalidated pointer is a freed address
which was subsequently re-used by the allocator to allocate a different
object (possibly an Isolate, possibly not). i.e. a hard-to-find bug.

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

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

Reply via email to