1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:20:07 -07:00

runtime: fix build

'range hash' makes a copy of the hash array in the stack, creating
a very large stack frame. It's just the right amount that it
uses most but not all of the total stack size. If you have a lot
of environment variables, like the builders, then this is too
much and the g0 stack runs out of space.

TBR=bradfitz
CC=golang-codereviews
https://golang.org/cl/132350043
This commit is contained in:
Russ Cox 2014-08-28 11:45:30 -04:00
parent af12dc5cd5
commit f022320723

View File

@ -427,7 +427,7 @@ func efacethash(e interface{}) uint32 {
}
func iterate_itabs(fn func(*itab)) {
for _, h := range hash {
for _, h := range &hash {
for ; h != nil; h = h.link {
fn(h)
}