Commit 4bb2ec5
committed
ZJIT: Assert with_write_ptr patches the half it is on
with_write_ptr saves and restores the current half's write position, so a
callback that switched halves in the middle would carry the patch site off
into the other half's saved position and hand back an empty written range,
which remove_gc_offsets reads. Nothing does that today -- invalidation and
call-site regeneration each emit one jump or call and have no side exits --
so make it an assertion rather than support it.1 parent fe932fd commit 4bb2ec5
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
| |||
0 commit comments