diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | gc.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Oct 4 21:49:14 2003 WATANABE Hirofumi <eban@ruby-lang.org> + + * gc.c (Init_stack): the type of space is changed to unsigned int + from double. [ruby-dev:21483] + Sat Oct 4 17:52:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * lib/soap/netHttpClient.rb: follow http-access2. hosts which matches @@ -1336,7 +1336,7 @@ Init_stack(addr) struct rlimit rlim; if (getrlimit(RLIMIT_STACK, &rlim) == 0) { - double space = (double)rlim.rlim_cur*0.2; + unsigned int space = rlim.rlim_cur/5; if (space > 1024*1024) space = 1024*1024; STACK_LEVEL_MAX = (rlim.rlim_cur - space) / sizeof(VALUE); |
