Skip to content

Commit

Permalink
Unpin default value objects
Browse files Browse the repository at this point in the history
We're already updating the location of default values, so we may as well
unpin them.
  • Loading branch information
tenderlove committed Aug 12, 2019
1 parent 4e418a6 commit 76a928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iseq.c
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 76a928b

Please sign in to comment.