summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-09-03 14:01:07 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-09-05 10:13:50 -0700
commit64817a7cfd4a258b45356e6da8fbdd0040b3231b (patch)
treeafaa30f9006fdf239dae648f1e199c7ff356bee2 /node.c
parent581fcde0884e493206b04b3e6b7a069b941dfe46 (diff)
Mark some tmpbufs via node objects
This way we don't need to add the tmpbufs to a Ruby array for marking
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.c b/node.c
index 61926ad02f..8a519f2947 100644
--- a/node.c
+++ b/node.c
@@ -1225,6 +1225,9 @@ mark_ast_value(void *ctx, NODE * node)
case NODE_DXSTR:
case NODE_DREGX:
case NODE_DSYM:
+ case NODE_ARGS:
+ case NODE_FOR:
+ case NODE_ARYPTN:
rb_gc_mark(node->nd_lit);
break;
}