diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2021-04-05 17:59:25 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:32 -0400 |
| commit | 21a63450236af6eaae954b367385c071231dc03f (patch) | |
| tree | ed2bb1597f64e8331c16f04d249afa2189b50a66 /spec/ruby | |
| parent | e56bd95ca05fa8ff07455e62143b260bcda74926 (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')
0 files changed, 0 insertions, 0 deletions
