From b4960648bf524605f87e5a5562c3a4b68d2a08bd Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 8 Jan 2018 16:00:38 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 60647605a6..132ba8b3bf 100644 --- a/vm.c +++ b/vm.c @@ -2364,7 +2364,7 @@ rb_execution_context_mark(const rb_execution_context_t *ec) 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]); } } -- cgit v1.2.3