In past v8s, you could write something like

   IdleNotification()

to do one pass of GC (an incremental pass in event loop or another
idle moment in your app), or,

   while( IdleNotification() );

to do a full sweep & collection.  IdleNotification() returns false
when there is no work to be done by the GC.  LowMemoryNotification()
is a more direct way of performing the second technique.  It tells the
GC to make some memory available.


On Wed, Apr 22, 2015 at 7:14 PM, 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.
> and I found IdleNotification(int idle_time_in_ms)  and
> LowMemoryNotification() api to do tht gc work.
> I test this two api in my program and find out LowMemoryNotification seems
> really do the gc work,
> but the IdleNotification does not.
>
> So, what's the difference between this two api?
> Are those two apis doing the same kind of garbage collection ?
>
> --
> --
> 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