fix: lock shared region before clearing proc slots in oom_check - #227
fix: lock shared region before clearing proc slots in oom_check#227mesutoezdil wants to merge 1 commit into
Conversation
Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mesutoezdil The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe allocator now protects OOM process-slot cleanup with shared-region locking, stores the cleanup result before retrying, and updates two nearby ChangesAllocator OOM synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
oom_check called clear_proc_slot_nolock without holding the shrreg lock, unlike its other caller. Concurrent OOM across processes can race on the shared proc table. Now it locks around the call, same as init_proc_slot_withlock.
Summary by CodeRabbit
Bug Fixes
Documentation