runtime: in doscanstackswitch, set gp->m before gogo
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 7 Jan 2019 22:07:26 +0000 (22:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 7 Jan 2019 22:07:26 +0000 (22:07 +0000)
commit33a5d8ccb5482e446410ffbba30f0b560fc1c8fc
tree709c96bb2f7fb7e7419f59a1b0f0044acb36ce47
parentfdcef314bcb0728d883cd87d6950d85217e82755
runtime: in doscanstackswitch, set gp->m before gogo

    This is following CL 156038. doscanstackswitch uses the same
    mechanism of switching goroutines as getTraceback, and so has
    the same problem as described in issue golang/go#29448. This CL
    applies the same fix.

    Reviewed-on: https://go-review.googlesource.com/c/156697

From-SVN: r267661
gcc/go/gofrontend/MERGE
libgo/runtime/proc.c