aboutsummaryrefslogtreecommitdiffstats
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
commit9c64ebcff9bf97be67561ae8b615084b0bc86491 (patch)
treead1d3c22d55d40f4115e7bed84058a5fb676a78d /vm.c
parenteabad7b5d0682a72ad0de7aaa86d023985a33186 (diff)
downloadruby-9c64ebcff9bf97be67561ae8b615084b0bc86491.tar.gz
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]);
}
}