]> Cypherpunks repositories - gostls13.git/commit
internal/pprof: don't discard allocations called by reflect.Call
authorIan Lance Taylor <iant@golang.org>
Mon, 28 Nov 2016 20:18:29 +0000 (12:18 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 28 Nov 2016 21:52:15 +0000 (21:52 +0000)
commitf7c351bdf6c8a70c90aac132194a9df390d002e0
treed2f527dab7ac3bcf1c228a65806844b4d575b8a4
parent993214a083d47afba7ba0ecf85ce5f35b1685358
internal/pprof: don't discard allocations called by reflect.Call

The pprof code discards all heap allocations made by runtime
routines. This caused it to discard heap allocations made by functions
called by reflect.Call, as the calls are made via the functions
`runtime.call32`, `runtime.call64`, etc. Fix the profiler to retain
these heap allocations.

Fixes #18077.

Change-Id: I8962d552f1d0b70fc7e6f7b2dbae8d5bdefb0735
Reviewed-on: https://go-review.googlesource.com/33635
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/internal/pprof/profile/legacy_profile.go
src/runtime/pprof/mprof_test.go