On Nov 30, 2009, at 9:20 AM, Stephan Beal wrote:
> Give us a RunGC() function which actually does a full GC run, and i'll be
> happy.
while( V8::IdleNotification() )
;
This is not a hack, it's explicitly documented behavior — read the comment
above the IdleNotification method in v8.h.
IdleNotification is incremental, and it returns true if there's more cleanup
work to be done, or false if it's done all it can.
If you still don't like relying on that, create a V8 patch like this:
void V8::RunGC() {
while( IdleNotification() )
;
}
then test it and submit it for review.
—Jens
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users