From: Russ Cox Date: Thu, 28 Aug 2014 15:45:30 +0000 (-0400) Subject: runtime: fix build X-Git-Tag: go1.4beta1~659 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f02232072312d6cb7921ad89256894c4cbd0b63c;p=gostls13.git 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 --- diff --git a/src/pkg/runtime/iface.go b/src/pkg/runtime/iface.go index 3180ea4524..57882fb704 100644 --- a/src/pkg/runtime/iface.go +++ b/src/pkg/runtime/iface.go @@ -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) }