2007-01-16 00:35:31 +01:00
|
|
|
Index: gc.c
|
|
|
|
===================================================================
|
2008-09-08 01:38:25 +02:00
|
|
|
--- gc.c.orig 2008-07-07 08:17:24.000000000 +0200
|
|
|
|
+++ gc.c 2008-07-22 17:51:19.058845598 +0200
|
|
|
|
@@ -480,7 +480,7 @@ unsigned int _stacksize = 262144;
|
2007-01-16 00:35:31 +01:00
|
|
|
# define STACK_LEVEL_MAX (_stacksize - 4096)
|
|
|
|
# undef HAVE_GETRLIMIT
|
2007-08-06 18:21:32 +02:00
|
|
|
#elif defined(HAVE_GETRLIMIT) || defined(_WIN32)
|
2007-01-16 00:35:31 +01:00
|
|
|
-static unsigned int STACK_LEVEL_MAX = 655300;
|
|
|
|
+static unsigned long STACK_LEVEL_MAX = 655300;
|
|
|
|
#else
|
|
|
|
# define STACK_LEVEL_MAX 655300
|
|
|
|
#endif
|
2008-09-08 01:38:25 +02:00
|
|
|
@@ -539,7 +539,7 @@ stack_grow_direction(addr)
|
2007-01-16 00:35:31 +01:00
|
|
|
(ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WATER_MARK);\
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
-int
|
|
|
|
+long
|
|
|
|
ruby_stack_length(p)
|
|
|
|
VALUE **p;
|
|
|
|
{
|
|
|
|
Index: intern.h
|
|
|
|
===================================================================
|
2008-09-08 01:38:25 +02:00
|
|
|
--- intern.h.orig 2008-07-07 05:29:28.000000000 +0200
|
|
|
|
+++ intern.h 2008-07-22 17:51:44.220378414 +0200
|
|
|
|
@@ -251,7 +251,7 @@ VALUE rb_file_directory_p _((VALUE,VALUE
|
2007-01-16 00:35:31 +01:00
|
|
|
/* gc.c */
|
|
|
|
NORETURN(void rb_memerror __((void)));
|
|
|
|
int ruby_stack_check _((void));
|
|
|
|
-int ruby_stack_length _((VALUE**));
|
|
|
|
+long ruby_stack_length _((VALUE**));
|
2008-09-08 01:38:25 +02:00
|
|
|
int rb_during_gc _((void));
|
2007-01-16 00:35:31 +01:00
|
|
|
char *rb_source_filename _((const char*));
|
|
|
|
void rb_gc_mark_locations _((VALUE*, VALUE*));
|