Yes, I did use the v8::Locker to call LowMemoryNotification In another thread.
在 2015年4月23日星期四 UTC+8下午4:10:48,Jochen Eisinger写道: > > 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] > <javascript:>> wrote: > >> On Thu, Apr 23, 2015 at 4:14 AM, kunjie Chen <[email protected] >> <javascript:>> 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] <javascript:> >> 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] <javascript:>. >> 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.
