From 76a928bac2f37e7aa631a6b6dd5320920d6c1b42 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 9 Aug 2019 16:05:42 -0700 Subject: Unpin default value objects We're already updating the location of default values, so we may as well unpin them. --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iseq.c') 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); } } } -- cgit v1.2.3