Project

General

Profile

Bug #412 » ruby-1.8.6.p286_gc.patch

pzb (Peter Bowen), 08/09/2008 03:11 AM

View differences:

ruby-1.8.6-p286.new/eval.c 2008-08-08 14:06:00.000000000 -0400
rb_thread_t th;
{
VALUE *pos;
int len;
long len;
static VALUE tval;
len = ruby_stack_length(&pos);
ruby-1.8.6-p286.new/gc.c 2008-08-08 13:54:51.000000000 -0400
# define STACK_LEVEL_MAX (_stacksize - 4096)
# undef HAVE_GETRLIMIT
#elif defined(HAVE_GETRLIMIT) || defined(_WIN32)
static unsigned int STACK_LEVEL_MAX = 655300;
static long STACK_LEVEL_MAX = 655300;
#else
# define STACK_LEVEL_MAX 655300
#endif
......
(ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WATER_MARK);\
} while (0)
int
long
ruby_stack_length(p)
VALUE **p;
{
ruby-1.8.6-p286.new/intern.h 2008-08-08 13:59:22.000000000 -0400
/* gc.c */
NORETURN(void rb_memerror __((void)));
int ruby_stack_check _((void));
int ruby_stack_length _((VALUE**));
long ruby_stack_length _((VALUE**));
int rb_during_gc _((void));
char *rb_source_filename _((const char*));
void rb_gc_mark_locations _((VALUE*, VALUE*));
(1-1/2)