From d22f62e718a3574e7d92ced9810261f91d2a4eb5 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Thu, 4 Jul 2013 18:45:03 +0000 Subject: [PATCH] Set 5M memory for OutOfMemory and OutOfMemoryNested test cases. BUG= TEST=cctest/test-api/OutOfMemory cctest/test-api/OutOfMemoryNested Review URL: https://codereview.chromium.org/18688002 Patch from Balazs Kilvady . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15494 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-api.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index 97c5fba..34432e3 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -3715,7 +3715,7 @@ TEST(OutOfMemory) { static const int K = 1024; v8::ResourceConstraints constraints; constraints.set_max_young_space_size(256 * K); - constraints.set_max_old_space_size(4 * K * K); + constraints.set_max_old_space_size(5 * K * K); v8::SetResourceConstraints(&constraints); // Execute a script that causes out of memory. @@ -3756,7 +3756,7 @@ TEST(OutOfMemoryNested) { static const int K = 1024; v8::ResourceConstraints constraints; constraints.set_max_young_space_size(256 * K); - constraints.set_max_old_space_size(4 * K * K); + constraints.set_max_old_space_size(5 * K * K); v8::SetResourceConstraints(&constraints); v8::HandleScope scope(v8::Isolate::GetCurrent()); -- 2.7.4