mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: simplify signalstack by dropping nil as argument
Change the two calls to signalstack(nil) to inline the code instead (it's two lines). Change-Id: Ie92a05494f924f279e40ac159f1b677fda18f281 Reviewed-on: https://go-review.googlesource.com/29854 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
60482d8a8b
commit
097a581dc0
2 changed files with 6 additions and 11 deletions
|
|
@ -192,7 +192,8 @@ func newosproc(mp *m, stk unsafe.Pointer) {
|
|||
// At this point all signals are blocked, so there is no race.
|
||||
//go:nosplit
|
||||
func netbsdMstart() {
|
||||
signalstack(nil)
|
||||
st := stackt{ss_flags: _SS_DISABLE}
|
||||
sigaltstack(&st, nil)
|
||||
mstart()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue