libgo: prune sighandler frames in runtime.sigprof
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Jul 2018 18:43:34 +0000 (18:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Jul 2018 18:43:34 +0000 (18:43 +0000)
commit5ac2fd0d6edd8198ed10b66f48402678471c044c
treec774cea3b87cb75ea927518c69a4dd358cf23888
parent58f51e5ca290160e67dcbf3b89654e025c9d3136
libgo: prune sighandler frames in runtime.sigprof

    When writing stack frames to the pprof CPU profile machinery, it is
    very important to insure that the frames emitted do not contain any
    frames corresponding to artifacts of the profiling process itself
    (signal handlers, sigprof, etc). This patch changes runtime.sigprof to
    strip out those frames from the raw stack generated by
    "runtime.callers".

    Fixes golang/go#26595.

    Reviewed-on: https://go-review.googlesource.com/126175

From-SVN: r263035
gcc/go/gofrontend/MERGE
libgo/go/runtime/pprof/pprof_test.go
libgo/go/runtime/proc.go