Add monitoring lock reinit and use raw() accessor#7335
Add monitoring lock reinit and use raw() accessor#7335youknowone merged 1 commit intoRustPython:mainfrom
Conversation
Add missing reinit_mutex_after_fork for vm.state.monitoring PyMutex in reinit_locks_after_fork. Use Mutex::raw() accessor in reinit_parking_lot_mutex instead of pointer cast from struct start for layout safety.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request adds post-fork mutex reinitialization for the monitoring state and refactors the parking_lot mutex reset implementation on Unix to use the explicit raw mutex API instead of direct pointer casting, ensuring proper lock state recovery after fork operations. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Add missing reinit_mutex_after_fork for vm.state.monitoring PyMutex in reinit_locks_after_fork.
Use Mutex::raw() accessor in reinit_parking_lot_mutex instead of pointer cast from struct start for layout safety.
Summary by CodeRabbit