Commit bb5eb51
committed
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 <[email protected]>
TryBot-Bypass: Michael Matloob <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>1 parent 5c9a26c commit bb5eb51
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | 2552 | | |
2556 | 2553 | | |
2557 | 2554 | | |
| |||
2586 | 2583 | | |
2587 | 2584 | | |
2588 | 2585 | | |
| 2586 | + | |
2589 | 2587 | | |
2590 | 2588 | | |
2591 | 2589 | | |
| |||
2663 | 2661 | | |
2664 | 2662 | | |
2665 | 2663 | | |
2666 | | - | |
| 2664 | + | |
2667 | 2665 | | |
2668 | 2666 | | |
2669 | 2667 | | |
| |||
0 commit comments