]> Cypherpunks repositories - gostls13.git/commit
runtime: preserve signal stack when calling Go on C thread
authorIan Lance Taylor <iant@golang.org>
Thu, 24 Dec 2015 02:38:18 +0000 (18:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Jan 2016 23:11:42 +0000 (23:11 +0000)
commita7cad52e04dd1890420452b38563997930edb2ca
treef5e8d176f64be6f07d1e1119a0d45afaf7a0e591
parent62c280ac1c2fce24133359513fa33ff11315f5ad
runtime: preserve signal stack when calling Go on C thread

When calling a Go function on a C thread, if the C thread already has an
alternate signal stack, use that signal stack instead of installing a
new one.

Update #9896.

Change-Id: I62aa3a6a4a1dc4040fca050757299c8e6736987c
Reviewed-on: https://go-review.googlesource.com/18108
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/testcarchive/main4.c [new file with mode: 0644]
misc/cgo/testcarchive/src/libgo4/libgo4.go [new file with mode: 0644]
misc/cgo/testcarchive/test.bash
src/runtime/os1_darwin.go
src/runtime/os1_dragonfly.go
src/runtime/os1_freebsd.go
src/runtime/os1_linux.go
src/runtime/os1_netbsd.go
src/runtime/os1_openbsd.go
src/runtime/os3_solaris.go
src/runtime/runtime2.go