-
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
time: the finalizers of Timer objects will not get executed #66650
Comments
CC @rsc @golang/runtime |
I haven't dug into this, but one observation: In general, timers are deleted lazily from the heap (for concurrency reasons). This program is doing little enough that it's possible it was just getting lucky before and tickling a timer cleanup, and now it's not getting quite as lucky and it's not triggering a timer cleanup. |
I poked at this and I think there might be a real leak here, but only if you call I am uncertain if this is worth fixing. |
It's not obvious to me why that is a problem. The |
My bad. This is a timer channel anyway, so it's not heaped at all. However, I see that it's possible for an Again, not sure if this is worth fixing. It might be as simple as just clearing the |
I'm not sure there's anything to do here, especially with #67535 coming down the pipe. Closing as not planned. |
Go version
go version devel go1.23-9a028e14a5 Fri Mar 29 16:46:47 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:.
What did you do?
Moved from #37196 (comment)
What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: