aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-08-09 16:05:42 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-08-12 12:34:09 -0400
commit76a928bac2f37e7aa631a6b6dd5320920d6c1b42 (patch)
tree099b99efc8da6452e9cdd229bb4c5c49e7ab9f32 /iseq.c
parent4e418a6c0676271da3176116a62a2fc913ac4548 (diff)
downloadruby-76a928bac2f37e7aa631a6b6dd5320920d6c1b42.tar.gz
Unpin default value objects
We're already updating the location of default values, so we may as well unpin them.
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 418d273012..0e27329b68 100644
--- a/iseq.c
+++ b/iseq.c
@@ -305,7 +305,7 @@ rb_iseq_mark(const rb_iseq_t *iseq)
for (j = 0; i < keyword->num; i++, j++) {
VALUE obj = keyword->default_values[j];
if (!SPECIAL_CONST_P(obj)) {
- rb_gc_mark(obj);
+ rb_gc_mark_no_pin(obj);
}
}
}