ruby-changes:49578
From: ko1 <ko1@a...>
Date: Tue, 9 Jan 2018 01:00:44 +0900 (JST)
Subject: [ruby-changes:49578] ko1:r61693 (trunk): fix a bug only on assertion.
ko1 2018-01-09 01:00:38 +0900 (Tue, 09 Jan 2018) New Revision: 61693 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61693 Log: fix a bug only on assertion. * vm.c (rb_execution_context_mark): check escaped directly to skip assertions. Not sure why there is an inconsistency. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 61692) +++ vm.c (revision 61693) @@ -2364,7 +2364,7 @@ rb_execution_context_mark(const rb_execu https://github.com/ruby/ruby/blob/trunk/vm.c#L2364 if (!VM_ENV_LOCAL_P(ep)) { const VALUE *prev_ep = VM_ENV_PREV_EP(ep); - if (VM_ENV_ESCAPED_P(prev_ep)) { + if (VM_ENV_FLAGS(prev_ep, VM_ENV_FLAG_ESCAPED)) { rb_gc_mark(prev_ep[VM_ENV_DATA_INDEX_ENV]); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/