Attempt to collect more garbage before panicking with out of memory.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Nov 2010 13:00:28 +0000 (13:00 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Nov 2010 13:00:28 +0000 (13:00 +0000)
commit20938fc53c69191a67a6606b97d9a9cea52ecab1
treeb38c324965abcf629040bee05150941dceae884a
parentad605a1bcc474a689cec4ddf0c5f1a5b01f07872
Attempt to collect more garbage before panicking with out of memory.

Currently weak handles retain an object for another GC round (oftem times,
major GC round.)  Instrumenting Chromium shows that navigation leaves
many global objects which are only collected in next go.  Let's
attempt to collect more garbage when approacing OOM condition.

This is a better version of rolled out r5455: now it's correctly
rebuilds object groups between additional GCs.

Review URL: http://codereview.chromium.org/4295004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5761 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/global-handles.cc
src/global-handles.h
src/heap-inl.h
src/heap.cc
src/heap.h