Re:Rust and Go
by malkia on Saturday November 08, 2014 @09:48AM
(#8576990)
I haven't looked into that (or googled), but how does one detect that everything has deadlocked - is it some kind of profiling/sampling being done, or is it something more system specific? Any pointers? Thanks!
[ Parent
| on HN ]
http://golang.org/pkg/runtime/pprof/#Profile
Provides a "blocking profile" that tells you what things blocked and for how long they blocked for.
You can use it to find places where you've deadlocked as well as places where adding buffered channels might help performance.
"all goroutines are asleep - deadlock".
https://code.google.com/p/go/source/browse/src/runtime/proc....