runtime: slice allocation with 1<<33 cap not showing up in profile #33342
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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
)?go env
OutputWhat did you do?
runnable program: https://play.golang.org/p/RPebfcdzpvI
What did you expect to see?
In normal, I think
bigMem
will be shown when I usego tool pprof xxx/heap
The program has been simplified, In my case bigMem in other package, and I want to find who use the memory from a lot of heap recordes.
What did you see instead?
I did't see information about
bigMem
What I found
I think the reason in malloc.go +1014
In fact size bigger than maxint32, so int32(size) maybe negative or zero, and never be recorded, perhaps definition c.next_sample uint64 is better ? or always record when size bigger than a threshold.
The text was updated successfully, but these errors were encountered: