]> Cypherpunks repositories - gostls13.git/commit
runtime: properly restore registers in Solaris runtime·sigtramp
authorAram Hăvărneanu <aram@mgk.ro>
Tue, 1 Jul 2014 23:34:06 +0000 (09:34 +1000)
committerDave Cheney <dave@cheney.net>
Tue, 1 Jul 2014 23:34:06 +0000 (09:34 +1000)
commitd7b678b2ca26928390078c29e3f71868e867a182
treec3517cf14a8e0492e9ec6b82852d1f9e9e20e1b6
parentbbe5c93e93922154d330cc4b7eecf148c830515c
runtime: properly restore registers in Solaris runtime·sigtramp

We restored registers correctly in the usual case where the thread
is a Go-managed thread and called runtime·sighandler, but we
failed to do so when runtime·sigtramp was called on a cgo-created
thread. In that case, runtime·sigtramp called runtime·badsignal,
a Go function, and did not restore registers after it returned

LGTM=rsc, dave
R=rsc, dave
CC=golang-codereviews, minux.ma
https://golang.org/cl/105280050
src/pkg/runtime/sys_solaris_amd64.s