From c2109cdd1ee8858ccefce4fb137a208c31262529 Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Wed, 21 Dec 2011 08:51:59 +0000 Subject: [PATCH] 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 --- src/heap.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index a3be8ba..5984834 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -463,6 +463,8 @@ void Heap::CollectAllAvailableGarbage() { } mark_compact_collector()->SetFlags(kNoGCFlags); new_space_.Shrink(); + UncommitFromSpace(); + Shrink(); incremental_marking()->UncommitMarkingDeque(); } -- 2.7.4