On Wed, Jul 8, 2015 at 11:09 PM, Juggle <[email protected]> wrote:
> Hi Ben.
>
> Thank you for your responding.
>
> I see about Sample 1.
> But what about Sample 2? There is memory leaks when I use this test code:
>
> setInterval(function () {
>  msg = addon.TestContext2("1==1");
>  console.log(msg, i++, process.memoryUsage().heapTotal/1024/1024);
> }, 2);

Does the process run out of memory if you run it for long enough?  Do
the isolate->ContextDisposedNotification() and
isolate->LowMemoryNotification() hints help?  Make sure you call them
when the Context::Scope object is no longer in scope.

-- 
-- 
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