mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add GC_GUARD
We observed mark miss on this point so we add RB_GC_GUARD() to avoid wrong free.
This commit is contained in:
parent
4a588e70b8
commit
29ed16ff4a
1 changed files with 1 additions and 0 deletions
1
ractor.c
1
ractor.c
|
@ -460,6 +460,7 @@ ractor_basket_accept(struct rb_ractor_basket *b)
|
||||||
break;
|
break;
|
||||||
case basket_type_copy_marshal:
|
case basket_type_copy_marshal:
|
||||||
v = rb_marshal_load(b->v);
|
v = rb_marshal_load(b->v);
|
||||||
|
RB_GC_GUARD(b->v);
|
||||||
break;
|
break;
|
||||||
case basket_type_exception:
|
case basket_type_exception:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue