Uncommit free pages in all spaces on low memory notification.

BUG=v8:1669
TEST=
R=erik.corry@gmail.com

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10289 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2011-12-21 08:51:59 +00:00
parent 4a45eb36f9
commit c2109cdd1e

View File

@ -463,6 +463,8 @@ void Heap::CollectAllAvailableGarbage() {
}
mark_compact_collector()->SetFlags(kNoGCFlags);
new_space_.Shrink();
UncommitFromSpace();
Shrink();
incremental_marking()->UncommitMarkingDeque();
}