]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: make morestack cutoff the same on all architectures
authorMichael Munday <munday@ca.ibm.com>
Tue, 28 Mar 2017 19:10:20 +0000 (15:10 -0400)
committerMichael Munday <munday@ca.ibm.com>
Wed, 29 Mar 2017 20:35:46 +0000 (20:35 +0000)
commit41fd8d6401b6702b801678a493001ec9e08d6f2d
tree0d1c3b54af049135a376fbc5523ca14a3ea37891
parentfbe6723903cc7ec06d0158d4909c6cb15c1ff977
cmd/internal/obj: make morestack cutoff the same on all architectures

There is always 128 bytes available below the stackguard. Allow functions
with medium-sized stack frames to use this, potentially allowing them to
avoid growing the stack.

This change makes all architectures use the same calculation as x86.

Change-Id: I2afb1a7c686ae5a933e50903b31ea4106e4cd0a0
Reviewed-on: https://go-review.googlesource.com/38734
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/arm64/obj7.go
src/cmd/internal/obj/mips/obj0.go
src/cmd/internal/obj/ppc64/obj9.go
src/cmd/internal/obj/s390x/objz.go