-
Notifications
You must be signed in to change notification settings - Fork 18k
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
runtime: finalizers misbehave with GC and heap profiling #3668
Labels
Comments
When the program is run with 20 million iterations and the default MemProfileRate the memory usage does not blow up but the profile is wrong. One of the last GC traces is: gc398(2): 0+0+0 ms, 0 -> 0 MB 48903 -> 267 (21000747-21000480) objects, 1(2) handoff, 20/20/2 yields % go tool pprof main prof Adjusting heap profiles for 1-in-524288 sampling rate Welcome to pprof! For help, type 'help'. (pprof) top Total: 154.0 MB 154.0 100.0% 100.0% 154.0 100.0% main.alloc 0.0 0.0% 100.0% 154.0 100.0% main.main 0.0 0.0% 100.0% 154.0 100.0% runtime.main 0.0 0.0% 100.0% 154.0 100.0% schedunlock % go tool pprof --inuse_objects main prof Adjusting heap profiles for 1-in-524288 sampling rate Welcome to pprof! For help, type 'help'. (pprof) top Total: 20185088 objects 20185088 100.0% 100.0% 20185088 100.0% main.alloc 0 0.0% 100.0% 20185088 100.0% main.main 0 0.0% 100.0% 20185088 100.0% runtime.main 0 0.0% 100.0% 20185088 100.0% schedunlock |
This issue was closed by revision 3480878. Status changed to Fixed. |
gopherbot
pushed a commit
that referenced
this issue
May 11, 2015
…lization. ««« backport 4a10c887bb3e runtime: do not unset the special bit after finalization. A block with finalizer might also be profiled. The special bit is needed to unregister the block from the profile. It will be unset only when the block is freed. Fixes #3668. R=golang-dev, rsc CC=golang-dev, remy https://golang.org/cl/6249066 »»»
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: