Commit 3bcbecf
committed
[luajit] Fix G-finding heuristic on aarch64 (#236)
I can't figure out why at some point we thought that r7 holds the
dispatch table on ARM, but as far as I can tell, that's not the case.
What is, however, the case, is that r22 holds G; see here:
https://github.com/LuaJIT/LuaJIT/blob/659a61693aa3b87661864ad0f12eee14c865cd7f/src/lj_target_arm64.h#L41
And this is the register we load `g` from, e.g. when entering `lj_gc_step_jit`.1 parent 9592cfa commit 3bcbecf
3 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
517 | 511 | | |
518 | 512 | | |
519 | 513 | | |
520 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
521 | 519 | | |
522 | 520 | | |
523 | 521 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments