Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sgt
on Feb 11, 2023
|
parent
|
context
|
favorite
| on:
A Heisenbug lurking in async Python
Is this something go developers also have to be careful with when using goroutines?
gerad
on Feb 11, 2023
|
next
[–]
No. But sometimes goroutines have the opposite problem, where they don’t terminate and get cleaned up.
https://betterprogramming.pub/common-goroutine-leaks-that-yo...
candiddevmike
on Feb 11, 2023
|
parent
|
next
[–]
Is there an (easy?) test for checking goroutine leaks?
Snawoot
on Feb 11, 2023
|
root
|
parent
|
next
[–]
Yes, it's visible on goroutine profile, provided by built-in profiler pprof. E.g.:
https://github.com/mysteriumnetwork/node/issues/5311#issueco...
Jtsummers
on Feb 11, 2023
|
prev
[–]
No. Goroutines don’t generate a reference to hold onto, either. They just run until they or the program terminate.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: