diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-13 09:13:39 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-13 09:13:39 +0000 |
commit | 6a3f682ff79266b0b38b8890f2fa61014089f6a3 (patch) | |
tree | b76bca2683cb21abc5489fca4977d2ff4e2eb33b /gc.c | |
parent | fe7c38c8620cf65461285b8a1b8c9afbbb36e044 (diff) | |
download | ruby-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.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 } |