fix(backtest): deadlock in printDataStatistics#61
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
## [1.7.1](v1.7.0...v1.7.1) (2026-04-19) ### Bug Fixes * **backtest:** deadlock in printDataStatistics ([#61](#61)) ([211d02b](211d02b))
|
🎉 This PR is included in version 1.7.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
HistoricalDataManager::printDataStatistics() acquires m_dataMutex then calls getStartTime()/getEndTime() which re-acquire the same non-recursive mutex, deadlocking any backtest after 'Data Points: N'.
Read m_dataPoints.front/back directly while holding the existing lock.
Summary by CodeRabbit