Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 4fccce6085cea8324ac7694081b54c68972cf22c..cc2a28312bc920aff88aa24f4ee2114a73b9d9a6 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -15883,9 +15883,12 @@ static uint32_t* ComputeStackLimit(uint32_t size) { |
} |
+// We need at least 165kB for an x64 debug build with clang and ASAN. |
+static const int stack_breathing_room = 256 * 1024; |
Michael Starzinger
2013/05/15 08:23:48
nit: Let's use the "KB" constant from globals.h in
Sven Panne
2013/05/15 08:59:02
Done.
|
+ |
+ |
TEST(SetResourceConstraints) { |
- static const int K = 1024; |
- uint32_t* set_limit = ComputeStackLimit(128 * K); |
+ uint32_t* set_limit = ComputeStackLimit(stack_breathing_room); |
// Set stack limit. |
v8::ResourceConstraints constraints; |
@@ -15909,8 +15912,7 @@ TEST(SetResourceConstraintsInThread) { |
uint32_t* set_limit; |
{ |
v8::Locker locker(CcTest::default_isolate()); |
- static const int K = 1024; |
- set_limit = ComputeStackLimit(128 * K); |
+ set_limit = ComputeStackLimit(stack_breathing_room); |
// Set stack limit. |
v8::ResourceConstraints constraints; |