Add recursion guard to the c-api - #8796
bschoenmaeckers wants to merge 3 commits into
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: RustPython/RustPython/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe VM now exposes methods to enter and leave recursive calls. The C API exports matching functions. The ChangesRecursive call tracking
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant CCaller
participant CAPI
participant VirtualMachine
CCaller->>CAPI: call Py_EnterRecursiveCall(where)
CAPI->>VirtualMachine: enter_recursive_call(where)
VirtualMachine-->>CAPI: return result
CCaller->>CAPI: call Py_LeaveRecursiveCall()
CAPI->>VirtualMachine: leave_recursive_call()
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is established; the change is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
83dac60 to
c2c18e7
Compare
|
Not sure why this breaks on only linux. |
Merging this PR will not alter performance
Comparing Footnotes
|
e5f7347 to
2262a5d
Compare
2262a5d to
c679b36
Compare
One of checkbox below must be checked.
Summary
Summary by CodeRabbit