File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ func StackNosplit(race bool) int {
20
20
func stackGuardMultiplier (race bool ) int {
21
21
// This arithmetic must match that in internal/runtime/sys/consts.go:StackGuardMultiplier.
22
22
n := 1
23
- // On AIX, a larger stack is needed for syscalls.
24
- if buildcfg .GOOS == "aix" {
23
+ // On AIX and OpenBSD , a larger stack is needed for syscalls.
24
+ if buildcfg .GOOS == "aix" || buildcfg . GOOS == "openbsd" {
25
25
n += 1
26
26
}
27
27
// The race build also needs more stack.
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import (
9
9
"internal/goos"
10
10
)
11
11
12
- // AIX requires a larger stack for syscalls.
12
+ // AIX and OpenBSD require a larger stack for syscalls.
13
13
// The race build also needs more stack. See issue 54291.
14
14
// This arithmetic must match that in cmd/internal/objabi/stack.go:stackGuardMultiplier.
15
- const StackGuardMultiplier = 1 + goos .IsAix + isRace
15
+ const StackGuardMultiplier = 1 + goos .IsAix + goos . IsOpenbsd + isRace
16
16
17
17
// DefaultPhysPageSize is the default physical page size.
18
18
const DefaultPhysPageSize = goarch .DefaultPhysPageSize
Original file line number Diff line number Diff line change 1
1
// run
2
2
3
- //go:build !nacl && !js && !aix && !wasip1 && !gcflags_noopt && gc
3
+ //go:build !nacl && !js && !aix && !openbsd && ! wasip1 && !gcflags_noopt && gc
4
4
5
5
// Copyright 2014 The Go Authors. All rights reserved.
6
6
// Use of this source code is governed by a BSD-style
You can’t perform that action at this time.
0 commit comments