summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 6789c0d180..6c8e9f650e 100644
--- a/gc.c
+++ b/gc.c
@@ -705,6 +705,8 @@ rb_gc_mark(ptr)
case NODE_YIELD:
case NODE_COLON2:
case NODE_ARGS:
+ case NODE_SPLAT:
+ case NODE_SVALUE:
ptr = (VALUE)obj->as.node.u1.node;
goto again;
@@ -1377,6 +1379,7 @@ os_each_obj(argc, argv)
{
VALUE of;
+ rb_secure(4);
if (rb_scan_args(argc, argv, "01", &of) == 0) {
return os_live_obj();
}