diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-04 07:17:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-04 07:17:03 +0000 |
commit | b323b86b6b3a7283617b72b45521c554dba930c9 (patch) | |
tree | 8a245b8c30c894a66cb5ef29fb2237a93aa15c0c /ChangeLog | |
parent | 669862a416ce92dfee6b677e35144e7b8db1cb19 (diff) | |
download | ruby-b323b86b6b3a7283617b72b45521c554dba930c9.tar.gz |
* thread_pthread.c (native_thread_init_stack): use get_stack.
patched by KOSAKI Motohiro [ruby-dev:40309]
* thread_pthread.c (ruby_init_stack): use get_stack
on platforms which have pthread_attr_get_np.
(FreeBSD, DragonFlyBSD and NetBSD)
This is because FreeBSD and DragonFly BSD must use
pthread_attr_get_np to get stack size of main thread,
but Mac OS X and Linux with LinuxThreads must use getrlimit.
<http://www.nminoru.jp/~nminoru/programming/stackoverflow_handling.html>
<http://d.hatena.ne.jp/nurse/20100204>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -1,8 +1,22 @@ +Thu Feb 4 15:47:27 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * thread_pthread.c (native_thread_init_stack): use get_stack. + patched by KOSAKI Motohiro [ruby-dev:40309] + + * thread_pthread.c (ruby_init_stack): use get_stack + on platforms which have pthread_attr_get_np. + (FreeBSD, DragonFlyBSD and NetBSD) + This is because FreeBSD and DragonFly BSD must use + pthread_attr_get_np to get stack size of main thread, + but Mac OS X and Linux with LinuxThreads must use getrlimit. + <http://www.nminoru.jp/~nminoru/programming/stackoverflow_handling.html> + <http://d.hatena.ne.jp/nurse/20100204> + Thu Feb 4 09:55:38 2010 NARUSE, Yui <naruse@ruby-lang.org> - * configure.in: FreeBSD, DragonFly BSD and Mac OS X needs + * configure.in: FreeBSD, DragonFly BSD and OpenBSD needs pthread_np.h to use pthread_*_np functions. - Mac OS X's pthread_*_np also depend sys/signal.h, + OpenBSD's pthread_*_np also depend sys/signal.h, but it is included at signal.h via vm_core.h via thread.c. Thu Feb 4 08:15:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> |