Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 97c5fba8a57a3f4e9e73cc8d25d90f153d44dfec..34432e36ac00231900e07191ad9a451faae2d990 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()); |