Rework debug conditional.
This commit is contained in:
parent
cb5da39f20
commit
3e5b885cd2
6
gc.c
6
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;
|
||||||
|
|
||||||
|
if (0) {
|
||||||
// Print out pid, sleep, so you can attach debugger to see what went wrong:
|
// Print out pid, sleep, so you can attach debugger to see what went wrong:
|
||||||
// fprintf(stderr, "rb_memerror pid=%d\n", getpid());
|
fprintf(stderr, "rb_memerror pid=%d\n", getpid());
|
||||||
// sleep(60);
|
sleep(60);
|
||||||
|
}
|
||||||
|
|
||||||
if (during_gc) gc_exit(objspace, "rb_memerror");
|
if (during_gc) gc_exit(objspace, "rb_memerror");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user