summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/basicobject/send.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-04-05 17:59:25 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:32 -0400
commit21a63450236af6eaae954b367385c071231dc03f (patch)
treeed2bb1597f64e8331c16f04d249afa2189b50a66 /spec/ruby/shared/basicobject/send.rb
parente56bd95ca05fa8ff07455e62143b260bcda74926 (diff)
YJIT: adjust branch shape properly when target already exists
The old code decides branch->shape based on the write position of the native code block, which is unsound in case the block already exists and no new code is written to the write position. Make this decision with the start address of the target block instead. Also handle when the branch becomes smaller after patching.
Diffstat (limited to 'spec/ruby/shared/basicobject/send.rb')
0 files changed, 0 insertions, 0 deletions