-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: stop single goroutine #31132
Comments
I would say that we probably need support for pausing and resuming the execution of a given goroutine. |
What's the use case for stopping a single goroutine? I can definitely see the value of resuming a single goroutine (#25578), but stopping a single goroutine is less clear to me. It may be that a single solution handles both cases, but I wanted to make sure I understand. |
It helps "reproduce" possible improper synchronization (race conditions) in concurrent code during debugging. Like freezing and thawing threads in the debugger in ecosystems supporting threads. Reference go-delve/delve#2262 |
For example, I want the apiserver I'm debugging to be able to handle other requests while I debug one handler. The health check fails when I'm debugging. |
Any progress on this? |
During debugging it would be useful to resume all goroutines except a single one, as it's the case in other programming languages.
In #25578 we have the request to resume a single goroutine while all others are stopped so this would be the similar/opposite request.
I'm sorry I don't know what else I could put in this request to make it more useful. Feel free to edit it with more details. Thank you.
The text was updated successfully, but these errors were encountered: