From f83565bc02ff8dbf9bb7d72a863f63c18361665d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 5 Dec 2014 19:50:09 -0500 Subject: [dev.garbage] runtime: raise StackGuard limit for Windows (again) 640 bytes ought to be enough for anybody. We'll bring this back down before Go 1.5. That's issue 9214. TBR=rlh CC=golang-codereviews https://codereview.appspot.com/188730043 --- src/runtime/stack.h | 2 +- src/runtime/stack2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/runtime/stack.h b/src/runtime/stack.h index 0099d05c2..0b2cd56a9 100644 --- a/src/runtime/stack.h +++ b/src/runtime/stack.h @@ -17,7 +17,7 @@ enum { #endif // Windows StackBig = 4096, - StackGuard = 512 + StackSystem, + StackGuard = 640 + StackSystem, StackSmall = 128, StackLimit = StackGuard - StackSystem - StackSmall, }; diff --git a/src/runtime/stack2.go b/src/runtime/stack2.go index e50b32c78..8a78b1ad9 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 = 512 + _StackSystem + _StackGuard = 640 + _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.2.1