JIT arm64 relocations does not handles large addresses
未關閉
還沒有人認領這個 Issue。
interpreter-core
performance
topic-JIT
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
In https://github.com/python/cpython/pull/146906, the JIT inlines the address of the function pointer in operand0 however the arm64 relocation does not properly handles large addresses which needs a trampoline.
I think the fix is to generate trampoline for such cases if the address is too large.
Claude suggested the following fix which seems to work: https://gist.github.com/kumaraditya303/45ca837aa1367e65a3bfadca9fae039e
cc @markshannon
Linked PRs
- gh-147941
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
審查 PR 146906 中 JIT arm64 的重定位變更,並將其與連結的 gist 中提出的修正進行比較。查看 PR 147941 以了解目前的工作;完成的標準是大型 function-pointer 位址能夠正確重定位,包括需要 trampoline 的情況。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- compilers
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100