Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(573)

Issue 132350043: code review 132350043: runtime: fix build (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by rsc
Modified:
10 years, 8 months ago
Reviewers:
crawshaw, bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r af98bb1ca0570de13d2e2daad9951629938bae07 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 3b0890b3de1d36dfd1a80225111922134c06d23e https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/pkg/runtime/iface.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
rsc
Hello bradfitz (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 8 months ago (2014-08-28 15:45:29 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=2b43b05b5dd9 *** runtime: fix build 'range hash' makes a copy of the ...
10 years, 8 months ago (2014-08-28 15:45:35 UTC) #2
crawshaw
LGTM
10 years, 8 months ago (2014-08-28 15:51:42 UTC) #3
bradfitz
10 years, 8 months ago (2014-08-28 15:59:07 UTC) #4
LGTM

nice



On Thu, Aug 28, 2014 at 8:45 AM, <rsc@golang.org> wrote:

> Reviewers: bradfitz,
>
> Message:
> Hello bradfitz (cc: golang-codereviews@googlegroups.com),
>
> I'd like you to review this change to
> https://code.google.com/p/go/
>
>
> Description:
> 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.
>
> Please review this at https://codereview.appspot.com/132350043/
>
> Affected files (+1, -1 lines):
>   M src/pkg/runtime/iface.go
>
>
> Index: src/pkg/runtime/iface.go
> ===================================================================
> --- a/src/pkg/runtime/iface.go
> +++ b/src/pkg/runtime/iface.go
> @@ -427,7 +427,7 @@
>  }
>
>  func iterate_itabs(fn func(*itab)) {
> -       for _, h := range hash {
> +       for _, h := range &hash {
>                 for ; h != nil; h = h.link {
>                         fn(h)
>                 }
>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b