Hi, no, it won't. And it shouldn't.
The GC is not a single function that is called internally from time to time to clean up your garbage. The GC is a complex beast that does lots of things for you in the background all the time, to (at least but not limited to) 1) limit overall time spent in the GC and 2) limit pause-times caused by the GC. Since you as a user have no idea of what it is doing (and frankly, shouldn't know either), you also should not try to interfere with it. So you should not try to call the GC by hand, you should not try to pool objects "to avoid allocation overhead", ... regards, Toon On Sun, Sep 1, 2013 at 8:25 PM, sihaowu <[email protected]> wrote: > Hi all : > > As far as I know, I can force GC to be triggered from the API or I > can run this > > > ./d8 --expose_gc XXX.js > > to expose gc() function so I can call it from the javascript. > Let's say I run a webapp, and I call gc() in my javascript code. > Will the GC be triggered if the user runs my webapp on his side ? > (note that in the user's side, he does'n expose the gc flag) > > 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/groups/opt_out. > -- -- 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/groups/opt_out.
