Make it possible for the jit to deopt to tier1 upon interrupts
未關閉
還沒有人認領這個 Issue。
interpreter-core
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Make CHECK_PERIODIC a separate instruction, use it instead of the _CHECK_PERIODIC uops for calls.
Then the JIT can safely abort the check instruction. For jumps we don't need to do this because the top appears before the jump instruction has any side effect on program state.
Linked PRs
- gh-132533
- gh-135772
- gh-137098
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從 issue 中描述的呼叫所涉及的 CHECK_PERIODIC 指令和 _CHECK_PERIODIC uops 開始,然後檢視連結的 PR 132533、135772 和 137098,了解目前的實作。完成的標準是:發生中斷時,JIT 能夠安全地中止檢查指令並 deopt 到 tier1,同時跳躍處理維持不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 20/100