[#3006] CVS repository — "Eugene Scripnik" <hoaz@...>

Hello.

21 messages 2004/06/16
[#3008] Re: CVS repository — ts <decoux@...> 2004/06/16

>>>>> "E" == Eugene Scripnik <hoaz@gala.net> writes:

[#3009] Re: CVS repository — Michal Rokos <michal@...> 2004/06/16

Hi!

[#3057] Ruby 1.8.2 to be released. — matz@... (Yukihiro Matsumoto)

Hi,

20 messages 2004/06/23

[Patch] Move all stack info to gc.c

From: Michal Rokos <michal@...>
Date: 2004-06-23 12:16:17 UTC
List: ruby-core #3047
Hello,

I moved all stack-size info to gc.c
- remove _stklen, since it's not used....
- remove _CRT_glob, ditto
- move _stacksize to gc.c and made it 'unsigned int' (left open - ie. 
not 'static')

Or is there any reason not to do this?

	Michal

PS: Macros in gc.c part cleaned as a bonus.

Index: main.c
===================================================================
RCS file: /var/cvs/src/ruby/main.c,v
retrieving revision 1.12
diff -u -p -r1.12 main.c
--- main.c      22 Nov 2003 03:59:18 -0000      1.12
+++ main.c      23 Jun 2004 12:11:55 -0000
@@ -12,18 +12,6 @@

 #include "ruby.h"

-#ifdef DJGPP
-unsigned int _stklen = 0x180000;
-#endif
-
-#ifdef __human68k__
-int _stacksize = 262144;
-#endif
-
-#if defined __MINGW32__
-int _CRT_glob = 0;
-#endif
-
 #if defined(__MACOS__) && defined(__MWERKS__)
 #include <console.h>
 #endif
Index: gc.c
===================================================================
RCS file: /var/cvs/src/ruby/gc.c,v
retrieving revision 1.177
diff -u -p -r1.177 gc.c
--- gc.c        16 Jun 2004 07:01:28 -0000      1.177
+++ gc.c        23 Jun 2004 12:11:56 -0000
@@ -407,18 +407,14 @@ VALUE *rb_gc_stack_start = 0;

 #if defined(DJGPP) || defined(_WIN32_WCE)
 static unsigned int STACK_LEVEL_MAX = 65535;
-#else
-#ifdef __human68k__
-extern unsigned int _stacksize;
+#elif defined(__human68k__)
+unsigned int _stacksize = 262144;
 # define STACK_LEVEL_MAX (_stacksize - 4096)
 # undef HAVE_GETRLIMIT
-#else
-#ifdef HAVE_GETRLIMIT
+#elif defined(HAVE_GETRLIMIT)
 static unsigned int STACK_LEVEL_MAX = 655300;
 #else
 # define STACK_LEVEL_MAX 655300
-#endif
-#endif
 #endif

 #ifdef C_ALLOCA

In This Thread

Prev Next