]> Cypherpunks repositories - gostls13.git/commit
runtime: use libc's signal functions on Darwin
authorKeith Randall <khr@golang.org>
Sun, 20 May 2018 15:57:53 +0000 (08:57 -0700)
committerKeith Randall <khr@golang.org>
Tue, 12 Jun 2018 17:05:39 +0000 (17:05 +0000)
commitec989337c5d3203d52de1a2314813996c711fce6
tree3ef3051df105771c6af76b1bdf133a810080e889
parentadeb7e640b04526c38c481aff85b923ca14fc92b
runtime: use libc's signal functions on Darwin

sigaction, sigprocmask, sigaltstack, and raiseproc.

Fix bug in mstart_stub where we weren't saving callee-saved registers,
so if an m finished the pthread library calling mstart_stub would
sometimes fail.

Update #17490
Update #22805

Change-Id: Ie297ede0997910aa956834e49e85711b90cdfaa7
Reviewed-on: https://go-review.googlesource.com/116875
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/defs_darwin.go
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s