]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgo: prune sighandler frames in runtime.sigprof
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2018 18:43:34 +0000 (18:43 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2018 18:43:34 +0000 (18:43 +0000)
commit42069bed13d2bad17751559492aaf0f7897d6ff8
treec774cea3b87cb75ea927518c69a4dd358cf23888
parent959342f678c34876b57d6d31fb089902204924d3
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263035 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/runtime/pprof/pprof_test.go
libgo/go/runtime/proc.go