Unless you use v8::Lockers to make sure only one thread at a time actually
does any work.

Anyway, LowMemoryNotification forces up to 7 compacting GCs. While
IdleNotificationDeadline (the IdleNotification version is deprecated and
will go away soon) tries to do some garbage collection work that fits
between now and the deadline. If you feed V8 enough idle time via this API,
you should see almost no GC activity during script execution.

best
-jochen

On Thu, Apr 23, 2015 at 10:07 AM Jakob Kummerow <[email protected]>
wrote:

> On Thu, Apr 23, 2015 at 4:14 AM, kunjie Chen <[email protected]> wrote:
>
>>
>> I'm using the v8 in a multi-thread env, runing normal scripts in one
>> thread and doing the garbage collection in another.
>>
>
> Knowing how the garbage collector works, there's no way this can work.
>
> --
> --
> 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.
>

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