summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-11-07 16:49:48 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2022-11-08 16:09:02 -0500
commit5d95cd99f4ed425c416cc91e8986a3402d5b557a (patch)
tree3057f421d99b3cb697d49d509617fb6d285976de /include
parent1466682a23ce0d7bf1f30d8b9627b4597c037e4d (diff)
YJIT: Reset dropped_bytes when patching code
We switch to a new page when we detect dropped_bytes flipping from false to true. Previously, when we patch code for invalidation during code gc, we start with the flag being set to true, so we failed to apply patches that straddle pages. We would write out jumps half way and then stop, which left the code corrupted. Reset the flag before patching so we patch across pages properly.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6686
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions