ruby-changes:62971
From: Aaron <ko1@a...>
Date: Wed, 16 Sep 2020 01:09:48 +0900 (JST)
Subject: [ruby-changes:62971] 86087a1527 (master): pointers on the stack need to be pinned
https://git.ruby-lang.org/ruby.git/commit/?id=86087a1527 From 86087a1527ffa52c7b2a3ce6b49ce57ea1b83588 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Mon, 14 Sep 2020 17:45:13 -0700 Subject: pointers on the stack need to be pinned diff --git a/gc.c b/gc.c index cf42d32..6a8e838 100644 --- a/gc.c +++ b/gc.c @@ -4934,7 +4934,7 @@ gc_mark_stack_values(rb_objspace_t *objspace, long n, const VALUE *values) https://github.com/ruby/ruby/blob/trunk/gc.c#L4934 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]); } } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/