]> Cypherpunks repositories - gostls13.git/commit
runtime: always use 1MB stacks on 32-bit Windows
authorAustin Clements <austin@google.com>
Tue, 18 Jul 2017 14:42:45 +0000 (10:42 -0400)
committerAustin Clements <austin@google.com>
Wed, 3 Jan 2018 18:49:57 +0000 (18:49 +0000)
commit77ea9f9f315befca503b55bc3b62fcb2d8cb9b32
treee55178739b66212005790bf7d7e8193d04509155
parent78583a125ae028b4c4ffc2732dfd1cd98855917c
runtime: always use 1MB stacks on 32-bit Windows

Commit c2c07c7989 (CL 49331) changed the linker and runtime to always
use 2MB stacks on 64-bit Windows. This is the corresponding change to
make 32-bit Windows always use large (1MB) stacks because it's
difficult to detect when Windows applications will call into arbitrary
C code that may expect a large stack.

This is done as a separate change because it's possible this will
cause too much address space pressure for a 32-bit address space. On
the other hand, cgo binaries on Windows already use 1MB stacks and
there haven't been complaints.

Updates #20975.

Change-Id: I8ce583f07cb52254fb4bd47250f1ef2b789bc490
Reviewed-on: https://go-review.googlesource.com/49610
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/cmd/link/internal/ld/pe.go
src/runtime/os_windows.go