зеркало из https://github.com/github/ruby.git
vm.c: feedback control frame size change
to VM_ASSERT. r62197 is adding bp. I'll try to remove bp, but let's pass CI which enables assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e35ff78985
Коммит
25a82d7936
2
vm.c
2
vm.c
|
@ -157,7 +157,7 @@ VM_CAPTURED_BLOCK_TO_CFP(const struct rb_captured_block *captured)
|
|||
{
|
||||
rb_control_frame_t *cfp = ((rb_control_frame_t *)((VALUE *)(captured) - 3));
|
||||
VM_ASSERT(!VM_CFP_IN_HEAP_P(GET_EC(), cfp));
|
||||
VM_ASSERT(sizeof(rb_control_frame_t)/sizeof(VALUE) == 6 + VM_DEBUG_BP_CHECK ? 1 : 0);
|
||||
VM_ASSERT(sizeof(rb_control_frame_t)/sizeof(VALUE) == 7 + VM_DEBUG_BP_CHECK ? 1 : 0);
|
||||
return cfp;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче