]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: increase stack system space on windows/amd64
authorHector Chu <hectorchu@gmail.com>
Sat, 17 Sep 2011 10:39:29 +0000 (20:39 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 17 Sep 2011 10:39:29 +0000 (20:39 +1000)
gotest src/pkg/exp/template/html was crashing because the exception handler overflowed the goroutine stack.

R=alex.brainman, golang-dev
CC=golang-dev
https://golang.org/cl/5031049

src/pkg/runtime/stack.h

index 44d5533f456a64c3433ee15db21b5c4d6034fdd5..483233876a5f4c3400cf37daa2e76e65a461b216 100644 (file)
@@ -58,7 +58,7 @@ enum {
        // purposes like signal handling. Used on Windows because
        // it does not use a separate stack.
 #ifdef __WINDOWS__
-       StackSystem = 2048,
+       StackSystem = 512 * sizeof(uintptr),
 #else
        StackSystem = 0,
 #endif