aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 531bf29810..345622fd4e 100644
--- a/gc.c
+++ b/gc.c
@@ -9398,6 +9398,10 @@ rb_memerror(void)
rb_objspace_t *objspace = rb_objspace_of(rb_ec_vm_ptr(ec));
VALUE exc;
+ // Print out pid, sleep, so you can attach debugger to see what went wrong:
+ // fprintf(stderr, "rb_memerror pid=%d\n", getpid());
+ // sleep(60);
+
if (during_gc) gc_exit(objspace, "rb_memerror");
exc = nomem_error;