зеркало из https://github.com/github/ruby.git
Rework debug conditional.
This commit is contained in:
Родитель
cb5da39f20
Коммит
3e5b885cd2
8
gc.c
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");
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче