about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-01 15:50:00 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-01 15:50:00 -0800
commit1974cf9a817455fb3dda94f6bb6ad7c85647260c (patch)
treeac6045ba5567c28d0da1b9a559a99f99a82535db /src
parent249f017bf2456100cabcfe5fcc2353097257fc84 (diff)
downloadrust-1974cf9a817455fb3dda94f6bb6ad7c85647260c.tar.gz
rust-1974cf9a817455fb3dda94f6bb6ad7c85647260c.zip
rt: Move RED_ZONE_SIZE to rust_task.cpp
Diffstat (limited to 'src')
-rw-r--r--src/rt/rust_internal.h9
-rw-r--r--src/rt/rust_task.cpp10
2 files changed, 10 insertions, 9 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index 4eec576379a..1e65d701e8f 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -94,15 +94,6 @@ static size_t const BUF_BYTES = 2048;
 // The error status to use when the process fails
 #define PROC_FAIL_CODE 101;
 
-// 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
-
 // Every reference counted object should use this macro and initialize
 // ref_count.
 
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;