1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.

This fixes a compilation failure while cross-compiling for Tensilica
  Xtensa Processor.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-04-27 11:21:10 +00:00
parent 5c1d4c2ade
commit ab750920b9
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Sat Apr 27 20:19:21 2013 Tanaka Akira <akr@fsij.org>
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
This fixes a compilation failure while cross-compiling for Tensilica
Xtensa Processor.
Sat Apr 27 19:32:44 2013 Benoit Daloze <eregontp@gmail.com>
* thread.c: fix typos and documentation

View file

@ -654,6 +654,7 @@ ruby_init_stack(volatile VALUE *addr
#elif defined(HAVE_GETRLIMIT)
int pagesize = getpagesize();
struct rlimit rlim;
STACK_GROW_DIR_DETECTION;
if (getrlimit(RLIMIT_STACK, &rlim) == 0) {
size = (size_t)rlim.rlim_cur;
}