From b06ad59622ecbc05f00c5c613aa81bf25e37789e Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Wed, 21 May 2014 12:58:06 +0000 Subject: [PATCH] Revert "Increase external allocation limit." BUG= Review URL: https://codereview.chromium.org/292983010 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21412 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/heap.cc b/src/heap.cc index 165cc80..b672bbf 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -5052,8 +5052,9 @@ bool Heap::ConfigureHeap(int max_semi_space_size, initial_semispace_size_ = Min(initial_semispace_size_, max_semi_space_size_); // The external allocation limit should be below 256 MB on all architectures - // to avoid that resource-constrained embedders run low on memory. - external_allocation_limit_ = 24 * max_semi_space_size_; + // to avoid unnecessary low memory notifications, as that is the threshold + // for some embedders. + external_allocation_limit_ = 12 * max_semi_space_size_; ASSERT(external_allocation_limit_ <= 256 * MB); // The old generation is paged and needs at least one page for each space. -- 2.7.4