From 1974cf9a817455fb3dda94f6bb6ad7c85647260c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 1 Dec 2011 15:50:00 -0800 Subject: rt: Move RED_ZONE_SIZE to rust_task.cpp --- src/rt/rust_task.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 808d1a6b986..965fc2a65c0 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -14,6 +14,16 @@ #include "globals.h" +// The amount of extra space at the end of each stack segment, available +// to the rt, compiler and dynamic linker for running small functions +// FIXME: We want this to be 128 but need to slim the red zone calls down +#ifdef __i386__ +#define RED_ZONE_SIZE 2048 +#endif + +#ifdef __x86_64__ +#define RED_ZONE_SIZE 2048 +#endif // Stack size size_t g_custom_min_stack_size = 0; -- cgit 1.4.1-3-g733a5