summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-11-08 11:52:22 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-11-08 14:37:08 +0900
commit4a7d6c2852aa734506be83c932168e8f974687b5 (patch)
tree0e25f1f2b2036fcf461b3df00ac48cbedd2043c2 /ruby_assert.h
parentf7db1affd10767d729866e95c02ffb26266829ab (diff)
Fix false LocalJumpError when branch coverage is enabled
`throw TAG_BREAK` instruction makes a jump only if the continuation of catch of TAG_BREAK exactly matches the instruction immediately following the "send" instruction that is currently being executed. Otherwise, it seems to determine break from proc-closure. Branch coverage may insert some recording instructions after "send" instruction, which broke the conditions for TAG_BREAK to work properly. This change forces to set the continuation of catch of TAG_BREAK immediately after "send" (or "invokesuper") instruction. [Bug #18991]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6688
Diffstat (limited to 'ruby_assert.h')
0 files changed, 0 insertions, 0 deletions