aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_windows.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-10-27 16:09:40 -0700
committerIan Lance Taylor <iant@golang.org>2020-11-20 20:38:12 +0000
commitefd204ccf78e16ee6792079ba70456ed425cb9c3 (patch)
tree1f37f9e107e7218377e72064d8e6fc2d3257603a /src/runtime/os_windows.go
parent730d5f42f919f948ff2841581ecec6fe4b465aee (diff)
downloadgo-efd204ccf78e16ee6792079ba70456ed425cb9c3.tar.gz
go-efd204ccf78e16ee6792079ba70456ed425cb9c3.zip
[release-branch.go1.15] runtime: block signals in needm before allocating M
Otherwise, if a signal occurs just after we allocated the M, we can deadlock if the signal handler needs to allocate an M itself. For #42207 Fixes #42636 Change-Id: I76f44547f419e8b1c14cbf49bf602c6e645d8c14 Reviewed-on: https://go-review.googlesource.com/c/go/+/265759 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> (cherry picked from commit 368c40116434532dc0b53b72fa04788ca6742898) Reviewed-on: https://go-review.googlesource.com/c/go/+/271847
Diffstat (limited to 'src/runtime/os_windows.go')
-rw-r--r--src/runtime/os_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go
index 769197db46..81d9ccf8f0 100644
--- a/src/runtime/os_windows.go
+++ b/src/runtime/os_windows.go
@@ -830,7 +830,7 @@ func mpreinit(mp *m) {
}
//go:nosplit
-func msigsave(mp *m) {
+func sigsave(p *sigset) {
}
//go:nosplit