This commit is contained in:
Samuel Williams 2019-06-19 19:09:48 +12:00
Родитель cb5da39f20
Коммит 3e5b885cd2
1 изменённых файлов: 5 добавлений и 3 удалений

8
gc.c
Просмотреть файл

@ -9398,9 +9398,11 @@ rb_memerror(void)
rb_objspace_t *objspace = rb_objspace_of(rb_ec_vm_ptr(ec)); rb_objspace_t *objspace = rb_objspace_of(rb_ec_vm_ptr(ec));
VALUE exc; VALUE exc;
// Print out pid, sleep, so you can attach debugger to see what went wrong: if (0) {
// fprintf(stderr, "rb_memerror pid=%d\n", getpid()); // Print out pid, sleep, so you can attach debugger to see what went wrong:
// sleep(60); fprintf(stderr, "rb_memerror pid=%d\n", getpid());
sleep(60);
}
if (during_gc) gc_exit(objspace, "rb_memerror"); if (during_gc) gc_exit(objspace, "rb_memerror");