summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-13 09:13:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-13 09:13:39 +0000
commit6a3f682ff79266b0b38b8890f2fa61014089f6a3 (patch)
treeb76bca2683cb21abc5489fca4977d2ff4e2eb33b /gc.c
parentfe7c38c8620cf65461285b8a1b8c9afbbb36e044 (diff)
downloadruby-6a3f682ff79266b0b38b8890f2fa61014089f6a3.tar.gz
* eval.c (thread_timer): use timer by sub-thread and nanosleep.
[ruby-talk:87519] * gc.c (Init_stack): no stack adjustment for THREAD_SAFE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gc.c b/gc.c
index 8aab6cc4f6..8d337cd57a 100644
--- a/gc.c
+++ b/gc.c
@@ -423,11 +423,11 @@ stack_growup_p(addr)
# define STACK_UPPER(x, a, b) (stack_growup_p(x) ? a : b)
#endif
-#define GC_WARTER_MARK 512
+#define GC_WATER_MARK 512
#define CHECK_STACK(ret) do {\
SET_STACK_END;\
- (ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WARTER_MARK);\
+ (ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WATER_MARK);\
} while (0)
int
@@ -1393,9 +1393,6 @@ Init_stack(addr)
if (STACK_LEVEL_MAX > IA64_MAGIC_STACK_LIMIT)
STACK_LEVEL_MAX = IA64_MAGIC_STACK_LIMIT;
#endif
-#ifdef _THREAD_SAFE
- STACK_LEVEL_MAX /= 4;
-#endif
#endif
}