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
strings: strings.Builder case memory leak #34754
Comments
Each iteration the See the code here https://play.golang.org/p/rZrJrrrgL4F |
Oh……you are right ! I made another mistake. Can you help me to see why the memory is leak in #34463 and the core code is in https://play.golang.org/p/o0cEeZ7o7xl and https://play.golang.org/p/o0cEeZ7o7xl I made a mistake in demo, is not the same as the running one, the leak really confused me. Tanks a lot |
GitHub issues should be used for tracking bugs and proposals only. If you wish for help with debugging move the discussion to a more appropriate place. |
@egonelbre I'll have another try latter. |
@szyhf indeed there could be a leak, but it could be in many places. It could be in the code you posted, it could be in any of the third-party libraries (bingo, ormer, database driver), some other code. Indeed it could be in Go runtime as well, but it is unlikely. The goal is to isolate the leak - such that it clearly demonstrates where the leak is. Community sites are much better for this rather than Go language issues. |
@egonelbre Thanks, I'll try to reproduce it in a clear way |
BTW, the reason why I think there is a leak of |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I made an issue #34463 but there some mistake, then I make a simple demo to record the
HeapInuse
and its increasing too.DemoCodeOfGoPlay
What did you expect to see?
Memory keep stable.
What did you see instead?
Memory increasing slowly.
The text was updated successfully, but these errors were encountered: