Bug #412 » ruby-1.8.6.p286_gc.patch
ruby-1.8.6-p286/eval.c 2008-08-08 21:12:58.000000000 -0400 | ||
---|---|---|
rb_thread_t th;
|
||
{
|
||
VALUE *pos;
|
||
int len;
|
||
VALUE len;
|
||
static VALUE tval;
|
||
len = ruby_stack_length(&pos);
|
ruby-1.8.6-p286/gc.c 2008-08-08 20:57:50.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 VALUE STACK_LEVEL_MAX = 655300;
|
||
#else
|
||
# define STACK_LEVEL_MAX 655300
|
||
#endif
|
||
... | ... | |
(ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WATER_MARK);\
|
||
} while (0)
|
||
int
|
||
VALUE
|
||
ruby_stack_length(p)
|
||
VALUE **p;
|
||
{
|
ruby-1.8.6-p286/intern.h 2008-08-08 20:57:50.000000000 -0400 | ||
---|---|---|
/* gc.c */
|
||
NORETURN(void rb_memerror __((void)));
|
||
int ruby_stack_check _((void));
|
||
int ruby_stack_length _((VALUE**));
|
||
VALUE ruby_stack_length _((VALUE**));
|
||
int rb_during_gc _((void));
|
||
char *rb_source_filename _((const char*));
|
||
void rb_gc_mark_locations _((VALUE*, VALUE*));
|
- « Previous
- 1
- 2
- Next »