HI,

I'm storing a v8::Context as a persistent value, in my constructor
V8::Persistent<v8::Context> context;
v8::Handle<v8::Context> context_ = v8::Context::New(this->isolate, NULL, 
global);
context->Reset(isolate, context_);


In my destructor, i am calling context.reset() to destroy the persistent 
storage.

in my test code,
I have  context constructed 10000 times, store a few values in the global 
object and disposing it. I can see the destructor getting called everytime. 
  The problem is the memory usage does not go down after the destructor is 
called, calling context.reset() does not seem to have an effect on the 
memory usage.  Is there something else i need to do such as calling the 
SetWeak() method on context?

Thanks

-- 
-- 
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/d/optout.

Reply via email to