From: Alex Brainman Date: Wed, 16 Feb 2011 05:08:42 +0000 (+1100) Subject: 8l,6l: allow for more os threads to be created on Windows X-Git-Tag: weekly.2011-02-24~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=074354c2eac9465a2aae010d719eb070c0845382;p=gostls13.git 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 --- 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);