mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
a823cd1694
commit
b4960648bf
1 changed files with 1 additions and 1 deletions
2
vm.c
2
vm.c
|
@ -2364,7 +2364,7 @@ rb_execution_context_mark(const rb_execution_context_t *ec)
|
||||||
|
|
||||||
if (!VM_ENV_LOCAL_P(ep)) {
|
if (!VM_ENV_LOCAL_P(ep)) {
|
||||||
const VALUE *prev_ep = VM_ENV_PREV_EP(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]);
|
rb_gc_mark(prev_ep[VM_ENV_DATA_INDEX_ENV]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue