Repository navigation
docs: withdraw the claim that debugpy's log made the multi-thread freeze frequent - #1397
Merged
Merged
Conversation
…quent The changelog entry of the debugpy log change, and a comment beside it, said the in-program log made the multi-thread freeze far more likely: 6 freezes in 600 rounds with the log on, none in 600 with it off. The comparison does not show that. A freeze needs both threads at their breakpoints together, and with the log off the second thread ran only 1 and 3 times in those 600 rounds; with it on, it left its wait 33 times for the 6 freezes. Zero freezes in a handful of chances says nothing either way. What stands is the cost of a logpoint hit (26.1 to 11.7 microseconds), which is what that change was for. The entry, the comment and two doc references now say only that. Whether the log changes how often the freeze happens is open in #1384. The claim was the manager session's; so is this correction. The squash message of #1392 carries it too and cannot be changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs
A comment in the Python policy's fallback spawn still cited the freeze issue as a reason for dropping --log-dir. Found by the Gemini review of the previous commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs
This was referenced Nov 30, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
A correction to text that went in with #1392. No behaviour changes.
The changelog entry of that change, and two comments beside the code, said or implied that debugpy's in-program log made the multi-thread freeze of the debugpy race issue far more likely: "6 freezes in 600 rounds with the log on, none in 600 with it off". The comparison does not show that.
Six of fifteen against none of four cannot be told apart (Fisher's exact test, p about 0.18).
What the runs do show is narrower: per round the log-on runs froze more often (6 in 600 against 0 in 600), because the second thread got to run about four times as often with the log on. That is a fact about the measurement's tight loop, not about the race. The two runs also differed in more than the log (the harness version, an hour between them).
What stands is the cost of a logpoint hit (26.1 µs with the log, 11.7 µs without), which is what #1392 was for. The changelog entry, the two comments and two doc references now say only that. Whether the log changes how often the freeze happens is left open in the issue for that race, whose text is corrected too.
The squash message of #1392 carries the claim and cannot be changed; a comment on that pull request and on its issue says so.
Review
Verified
Python adapter and policy unit tests and the loopback guard pass. Type check, lint, docs check and changelog check pass. Five lines change: one changelog entry, two comments, two doc references.
Who wrote what
The claim was the manager session's (Claude), and so is this correction. An advisor review caught it before the evening's summary went out.
🤖 Generated with Claude Code
https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs