Attempt to collect more garbage before panicking with out of memory.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 14 Sep 2010 17:48:56 +0000 (17:48 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 14 Sep 2010 17:48:56 +0000 (17:48 +0000)
commitdae5fc6f815de8a3cb4ef176b6c50d908d8f8a49
treebcfb28879a02978efc9bcf3a1eac088deebe6d8b
parentc3f04bf46fa2fae2f3885489f6d99cd813fc51e0
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.

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

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