diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-09 09:17:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-09 09:17:09 +0000 |
commit | a534e39a87b81804ca58dc0b765d338b83f0a96d (patch) | |
tree | e45655d0fd5be25e82a27b4c7ed4f44f460216d8 /thread_pthread.c | |
parent | 71b1673229c57cd44b2ffe79bb094cfb986fbeca (diff) |
* thread_{pthread,win32}.c (rb_thread_create_timer_thread): needs more
stack for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 72a4dae8cb..4787823b3d 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -693,7 +693,8 @@ rb_thread_create_timer_thread(void) pthread_attr_init(&attr); #ifdef PTHREAD_STACK_MIN - pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN); + pthread_attr_setstacksize(&attr, + PTHREAD_STACK_MIN + (THREAD_DEBUG ? BUFSIZ : 0)); #endif err = pthread_create(&timer_thread_id, &attr, thread_timer, GET_VM()); if (err != 0) { |