]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up signalstack API
authorAustin Clements <austin@google.com>
Thu, 21 May 2015 18:12:29 +0000 (14:12 -0400)
committerAustin Clements <austin@google.com>
Tue, 2 Jun 2015 19:57:42 +0000 (19:57 +0000)
commitc02b8911d84662ff6d0745acba6f2fcb79cc5cd1
tree6ba7109ce6d29f1f972a44e16c28f7363a48d9bd
parentcc6a7fce533d7214c9cda0fc57af9ac948e61b7c
runtime: clean up signalstack API

Currently signalstack takes a lower limit and a length and all calls
hard-code the passed length. Change the API to take a *stack and
compute the lower limit and length from the passed stack.

This will make it easier for the runtime to steal some space from the
top of the stack since it eliminates the hard-coded stack sizes.

Change-Id: I7d2a9f45894b221f4e521628c2165530bbc57d53
Reviewed-on: https://go-review.googlesource.com/10311
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
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