]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: fix errors in pprof_test
authormatloob <matloob@golang.org>
Wed, 15 Oct 2025 16:52:47 +0000 (12:52 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 15 Oct 2025 18:15:17 +0000 (11:15 -0700)
commitbb5eb5171535b9080055fee5996bd55398202124
treeeedc5ce80edb8b34cc37c4a5215e8aa203366734
parent5c9a26c7f882dba5bfe10036815bcb239dd9b7e8
runtime/pprof: fix errors in pprof_test

I think the original depth-1 argument to allocDeep was correct.
Reverted that, and also the change to maxSkip in mprof.go, which was
also incorrect. I think before we were usually passing accidentally in
the loop over matched stacks when we really should usually have been
passing in the previous loop.

Change-Id: I6a6a696463e2baf045b66f418d7afbfcb49258e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/712100
Reviewed-by: Michael Matloob <matloob@google.com>
TryBot-Bypass: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mprof.go
src/runtime/pprof/pprof_test.go