aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2011-02-16 16:08:42 +1100
committerAlex Brainman <alex.brainman@gmail.com>2011-02-16 16:08:42 +1100
commit074354c2eac9465a2aae010d719eb070c0845382 (patch)
treebeb74ac96ea26fbc1a3137eb89366776007136eb /src/cmd/ld
parent186b07afff967e79aa408155a02ac4e0b822c053 (diff)
downloadgo-074354c2eac9465a2aae010d719eb070c0845382.tar.xz
8l,6l: allow for more os threads to be created on Windows
Program listed http://code.google.com/p/go/issues/detail?id=1495 (with nRequester set to 10000) will crash with runtime: failed to create new OS thread (have 4526 already; errno=8) instead of runtime: failed to create new OS thread (have 618 already; errno=8). R=golang-dev, rsc, vcc CC=golang-dev https://golang.org/cl/4172046
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/pe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/pe.c b/src/cmd/ld/pe.c
index 2c34daab4e..995809f5f2 100644
--- a/src/cmd/ld/pe.c
+++ b/src/cmd/ld/pe.c
@@ -526,7 +526,7 @@ asmbpe(void)
set(SizeOfImage, nextsectoff);
set(SizeOfHeaders, PEFILEHEADR);
set(Subsystem, 3); // WINDOWS_CUI
- set(SizeOfStackReserve, 0x00200000);
+ set(SizeOfStackReserve, 0x0040000);
set(SizeOfStackCommit, 0x00001000);
set(SizeOfHeapReserve, 0x00100000);
set(SizeOfHeapCommit, 0x00001000);