Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
runtime: difficult to find memory leak that is a result lots of defers in a hot loop #42357
What version of Go are you using (
@josharian encouraged me to file an issue after helping me debug this over on gophers #performance slack. I have solved my memory leak bug but pprof didn't really help in this case - I thought it might be useful to share my experience and start a discussion on whether pprof could be improved to catch issues like this in the future.