From 8091803b599d666d024e9e2ee72b2acedc2cddbd Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 10 Apr 2011 12:55:42 -0600 Subject: [PATCH] set MaxNativeCallFootprint to 5 on 32-bit systems Thunks such as divideLong now take a pointer and two int64_t arguments, which amounts to 5 words of stack space on a 32-bit system. --- src/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.cpp b/src/compile.cpp index de07ebd294..384c9e4c2e 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -52,7 +52,7 @@ const bool Continuations = true; const bool Continuations = false; #endif -const unsigned MaxNativeCallFootprint = 4; +const unsigned MaxNativeCallFootprint = BytesPerWord == 8 ? 4 : 5; const unsigned InitialZoneCapacityInBytes = 64 * 1024;