recomp: stop reachability at terminal traps #514
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!514
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-510"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fruvs on GitHub · 2026-11-27 23:04 UTC · original
fruvs:codex/lift-terminal-traps→native/arm64-run· +49 −1 · 1 files · 1 commits · draftSummary
Stop the lifter's reachability walk at instructions that already emit a nonreturning trap. Direct branches, jump tables, and independently seeded entries still reach their targets. This keeps inline data after a trap from causing an otherwise liftable routine to be replaced by an abort stub.
Verification
The recompiler is on
native/arm64-run, which is also the base for #115.@AnastasisKon on GitHub · 2026-11-28 16:59 UTC · original · approved these changes
Read the diff and ran the crate's tests on the head
7cc469bb:cargo test -p victory-recompall green, including the newdata_after_a_terminal_trap_does_not_block_a_function(five trap mnemonics; checks the bytes after the trap stay unreachable while a separately branched-to successor stays live, and that the lift emits the trap plus the successor's0x7ull). The change moves the terminal-trap break ahead of the flow-control match and widens it fromUd2toInt/Int1/Int3/Ud2/Hlt, preserving the oldUd2behavior via the same path. Approving.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.