ruby-changes:55426
From: tenderlove <ko1@a...>
Date: Sat, 20 Apr 2019 14:11:42 +0900 (JST)
Subject: [ruby-changes:55426] tenderlove:r67635 (trunk): Always pin stack zombie and moved slots
tenderlove 2019-04-20 14:11:37 +0900 (Sat, 20 Apr 2019) New Revision: 67635 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67635 Log: Always pin stack zombie and moved slots We should always pin stack zombies and moved Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 67634) +++ gc.c (revision 67635) @@ -4654,6 +4654,11 @@ gc_mark_maybe_(rb_objspace_t *objspace, https://github.com/ruby/ruby/blob/trunk/gc.c#L4654 unpoison_object(obj, false); type = BUILTIN_TYPE(obj); + + if (type == T_MOVED || type == T_ZOMBIE) { + gc_pin(objspace, obj); + } + /* Garbage can live on the stack, so do not mark or pin */ if (type != T_MOVED && type != T_ZOMBIE && type != T_NONE) { if (pin) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/