From 0cddba1fa1df8641edd8fc3c6b1ae163ce976ef7 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 4 Oct 2003 12:51:32 +0000 Subject: * gc.c (Init_stack): the type of space is changed to unsigned int from double. [ruby-dev:21483] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01e811487..864097e58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 4 21:49:14 2003 WATANABE Hirofumi + + * 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 * lib/soap/netHttpClient.rb: follow http-access2. hosts which matches diff --git a/gc.c b/gc.c index 02aaa8692..0eb2e096c 100644 --- a/gc.c +++ b/gc.c @@ -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); -- cgit