fix: restore waitDirty timeout in forced dump to prevent busy-loop spinning (fixes #1768)#1769
fix: restore waitDirty timeout in forced dump to prevent busy-loop spinning (fixes #1768)#1769
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 (2)
📝 WalkthroughWalkthroughThis change reverts a conditional logic inversion in three overloaded Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|



Summary
Commit c2a0b89 swapped
waitDirty(timeout) || forceDumptoforceDump || waitDirty(timeout)in the threedump(timeout, forceDump, ...)overloads. Due to Java's short-circuit evaluation, whenforceDump=true,waitDirty(timeout)is never called, so the method returns immediately instead of waiting up totimeoutms. This causes busy-loop spinning for callers that rely on the timeout for throttling redraws.This restores the original operand order so
waitDirty(timeout)is always evaluated first, preserving the throttling behavior.Fixes #1768
Summary by CodeRabbit
Bug Fixes
Tests