aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_openbsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/os_openbsd.go')
-rw-r--r--src/runtime/os_openbsd.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go
index cd3565df5b..d7960f4c91 100644
--- a/src/runtime/os_openbsd.go
+++ b/src/runtime/os_openbsd.go
@@ -236,7 +236,11 @@ func goenvs() {
// Called to initialize a new m (including the bootstrap m).
// Called on the parent thread (main thread in case of bootstrap), can allocate memory.
func mpreinit(mp *m) {
- mp.gsignal = malg(32 * 1024)
+ gsignalSize := int32(32 * 1024)
+ if GOARCH == "mips64" {
+ gsignalSize = int32(64 * 1024)
+ }
+ mp.gsignal = malg(gsignalSize)
mp.gsignal.m = mp
}