summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-09-14 17:45:13 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2020-09-15 09:09:25 -0700
commit86087a1527ffa52c7b2a3ce6b49ce57ea1b83588 (patch)
treef3e3d16cf49ba9072be5f9df1b684148acc95db7 /gc.c
parentee10efdcf028c0455c192acdd8298c42f0be3d87 (diff)
pointers on the stack need to be pinned
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3544
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index cf42d32c97..6a8e838e34 100644
--- a/gc.c
+++ b/gc.c
@@ -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]);
}
}
}