diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 16:00:38 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 16:00:38 +0000 |
commit | b4960648bf524605f87e5a5562c3a4b68d2a08bd (patch) | |
tree | ad1d3c22d55d40f4115e7bed84058a5fb676a78d /vm.c | |
parent | a823cd169421c55ee12c5810a11adbabd569fd51 (diff) |
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
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); } } |