From a55b131393bfc2b0107806edd22c4dd704d96197 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 30 Apr 2015 16:57:23 -0700 Subject: cmd/dist, runtime: Make stack guard larger for non-optimized builds Kind of a hack, but makes the non-optimized builds pass. Fixes #10079 Change-Id: I26f41c546867f8f3f16d953dc043e784768f2aff Reviewed-on: https://go-review.googlesource.com/9552 Reviewed-by: Russ Cox --- src/runtime/stack2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/stack2.go') diff --git a/src/runtime/stack2.go b/src/runtime/stack2.go index 07a7d38f0c..5ec8d8d060 100644 --- a/src/runtime/stack2.go +++ b/src/runtime/stack2.go @@ -84,7 +84,7 @@ const ( // The stack guard is a pointer this many bytes above the // bottom of the stack. - _StackGuard = 640 + _StackSystem + _StackGuard = 640*stackGuardMultiplier + _StackSystem // After a stack split check the SP is allowed to be this // many bytes below the stack guard. This saves an instruction -- cgit v1.3-5-g9baa