Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 2bfdeabd42cd606a40e8242d120465dc0414a0ab..412e963b60d349c8c478e4e91ba157f5318ebb63 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -17210,10 +17210,12 @@ class InitDefaultIsolateThread : public v8::base::Thread { |
void Run() { |
v8::Isolate::CreateParams create_params; |
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); |
+ const intptr_t pageSizeMult = |
+ v8::internal::Page::kPageSize / v8::internal::MB; |
switch (testCase_) { |
case SetResourceConstraints: { |
- create_params.constraints.set_max_semi_space_size(1); |
- create_params.constraints.set_max_old_space_size(4); |
+ create_params.constraints.set_max_semi_space_size(1 * pageSizeMult); |
+ create_params.constraints.set_max_old_space_size(4 * pageSizeMult); |
break; |
} |
default: |