Introduce a external allocation limit.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Jul 2009 10:01:25 +0000 (10:01 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Jul 2009 10:01:25 +0000 (10:01 +0000)
commit2183309385d5f49d1d188fead733e833251b7a6f
treeb26bc68853f9476dee6c2f78697d86461e97957c
parentbe562ee794f04965f3abc83a79a459cc4ef83d01
Introduce a external allocation limit.

If V8 is holding on to a lot of external memory, we attempt to clean
it up even if we do not get an allocation failure.  Since tiny V8
objects can hold on to a lot of external memory, we might run out of
external memory while waiting for a normal allocation failure.
Review URL: http://codereview.chromium.org/155916

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2519 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-inl.h
src/heap.cc
src/heap.h
test/cctest/test-api.cc