You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This resolves critical bugs in update_branch_imm causing intermittent
test failures (~13-20% failure rate) on macOS/Arm64:
1. MAP_JIT memory corruption: Reading MAP_JIT memory while in write mode
returns corrupted data on Apple Silicon. Fixed by moving
pthread_jit_write_protect_np(false) to after the read operation.
2. Branch offset bit accumulation: When branches are patched multiple
times, old offset bits were not cleared before OR-ing new values.
Added bit masking to clear old offsets before setting new ones.
0 commit comments