summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 16:00:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 16:00:38 +0000
commitb4960648bf524605f87e5a5562c3a4b68d2a08bd (patch)
treead1d3c22d55d40f4115e7bed84058a5fb676a78d /vm.c
parenta823cd169421c55ee12c5810a11adbabd569fd51 (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.c2
1 files changed, 1 insertions, 1 deletions
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]);
}
}