Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index d8fa648bf20bc78b1159e3ca1d9c206554f97aa3..8d1faeb154e1caf113ef459bf903afd9a10b526d 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -19534,10 +19534,9 @@ class InitDefaultIsolateThread : public v8::internal::Thread { |
isolate->Enter(); |
switch (testCase_) { |
case SetResourceConstraints: { |
- static const int K = 1024; |
v8::ResourceConstraints constraints; |
- constraints.set_max_new_space_size(2 * K * K); |
- constraints.set_max_old_space_size(4 * K * K); |
+ constraints.set_max_semi_space_size(1); |
+ constraints.set_max_old_space_size(4); |
v8::SetResourceConstraints(CcTest::isolate(), &constraints); |
break; |
} |