pointers on the stack need to be pinned

This commit is contained in:
Aaron Patterson 2020-09-14 17:45:13 -07:00 committed by Aaron Patterson
parent ee10efdcf0
commit 86087a1527
Notes: git 2020-09-16 01:10:02 +09:00

2
gc.c
View File

@ -4934,7 +4934,7 @@ gc_mark_stack_values(rb_objspace_t *objspace, long n, const VALUE *values)
for (i=0; i<n; i++) {
if (is_markable_object(objspace, values[i])) {
gc_mark(objspace, values[i]);
gc_mark_and_pin(objspace, values[i]);
}
}
}