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

Issue 72360043: code review 72360043: runtime: round stack size to power of 2. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by minux1
Modified:
11 years, 3 months ago
Reviewers:
mattn, rsc, dvyukov
CC:
golang-codereviews, mattn, dvyukov, 0intro, rsc
Visibility:
Public.

Description

runtime: round stack size to power of 2. Fixes build on windows/386 and plan9/386. Fixes issue 7487.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 5 : diff -r 464e72469fe8 https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 7 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 8 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 9 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 10 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 11 : diff -r 464e72469fe8 https://code.google.com/p/go #

Patch Set 12 : diff -r 72b4b258b09b https://code.google.com/p/go #

Patch Set 13 : diff -r d763454383f4 https://code.google.com/p/go #

Patch Set 14 : diff -r ef9dd517f626 https://code.google.com/p/go #

Total comments: 1

Patch Set 15 : diff -r ef9dd517f626 https://code.google.com/p/go #

Patch Set 16 : diff -r ef9dd517f626 https://code.google.com/p/go #

Total comments: 1

Patch Set 17 : diff -r ef9dd517f626 https://code.google.com/p/go #

Patch Set 18 : diff -r ef9dd517f626 https://code.google.com/p/go #

Patch Set 19 : diff -r 03e5b26282f7 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -13 lines) Patch
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -3 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/stack.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -7 lines 0 comments Download
M src/pkg/runtime/stack.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21
minux1
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2014-03-07 06:31:33 UTC) #1
minux1
PTAL.
11 years, 3 months ago (2014-03-07 06:34:57 UTC) #2
mattn
LGTM https://codereview.appspot.com/72360043/diff/70001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/72360043/diff/70001/src/pkg/runtime/proc.c#newcode1945 src/pkg/runtime/proc.c:1945: stksize = round2(FixedStack); Is this need to call ...
11 years, 3 months ago (2014-03-07 06:42:14 UTC) #3
dvyukov
LGTM
11 years, 3 months ago (2014-03-07 06:46:53 UTC) #4
0intro
Thanks. It also fixes the issue on Plan 9. Please add "plan9/386" in your description.
11 years, 3 months ago (2014-03-07 06:54:25 UTC) #5
dvyukov
On 2014/03/07 06:46:53, dvyukov wrote: > LGTM not lgtm this will effectively disable fixed stack ...
11 years, 3 months ago (2014-03-07 07:05:03 UTC) #6
minux1
https://codereview.appspot.com/72360043/diff/70001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/72360043/diff/70001/src/pkg/runtime/proc.c#newcode1945 src/pkg/runtime/proc.c:1945: stksize = round2(FixedStack); On 2014/03/07 06:42:15, mattn wrote: > ...
11 years, 3 months ago (2014-03-07 07:05:41 UTC) #7
minux1
On 2014/03/07 07:05:03, dvyukov wrote: > this will effectively disable fixed stack segment cache, because ...
11 years, 3 months ago (2014-03-07 07:09:49 UTC) #8
mattn
I prefer second.
11 years, 3 months ago (2014-03-07 07:11:57 UTC) #9
mattn
On 2014/03/07 07:11:57, mattn wrote: > I prefer second. Or, global variable. int FixedStack = ...
11 years, 3 months ago (2014-03-07 07:15:36 UTC) #10
dvyukov
On Fri, Mar 7, 2014 at 11:09 AM, <minux.ma@gmail.com> wrote: > On 2014/03/07 07:05:03, dvyukov ...
11 years, 3 months ago (2014-03-07 07:18:24 UTC) #11
minux1
I changed FixedStack to a variable, however it seems to break every platform. (go_bootstrap runs ...
11 years, 3 months ago (2014-03-07 16:43:07 UTC) #12
minux1
PTAL.
11 years, 3 months ago (2014-03-07 19:18:23 UTC) #13
rsc
This CL seems too complex. I propose to just bump 386 to 4k like amd64 ...
11 years, 3 months ago (2014-03-07 19:19:27 UTC) #14
rsc
I sent that comment before your PTAL. Your new version is nicer - I just ...
11 years, 3 months ago (2014-03-07 19:20:50 UTC) #15
minux1
Hello golang-codereviews@googlegroups.com, mattn.jp@gmail.com, dvyukov@google.com, 0intro@gmail.com, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 3 months ago (2014-03-07 19:25:11 UTC) #16
rsc
https://codereview.appspot.com/72360043/diff/130002/src/pkg/runtime/stack.h File src/pkg/runtime/stack.h (right): https://codereview.appspot.com/72360043/diff/130002/src/pkg/runtime/stack.h#newcode80 src/pkg/runtime/stack.h:80: // Do not use this constant directly, use the ...
11 years, 3 months ago (2014-03-07 19:30:34 UTC) #17
minux1
PTAL. On Fri, Mar 7, 2014 at 2:30 PM, <rsc@golang.org> wrote: > https://codereview.appspot.com/72360043/diff/130002/src/ > pkg/runtime/stack.h#newcode80 ...
11 years, 3 months ago (2014-03-07 19:36:51 UTC) #18
rsc
LGTM https://codereview.appspot.com/72360043/diff/230001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/72360043/diff/230001/src/pkg/runtime/proc.c#newcode146 src/pkg/runtime/proc.c:146: if(FixedStack != runtime·round2(FixedStack)) this is the sort of ...
11 years, 3 months ago (2014-03-07 19:44:07 UTC) #19
0intro
It works for me.
11 years, 3 months ago (2014-03-07 19:51:32 UTC) #20
minux1
11 years, 3 months ago (2014-03-07 20:11:29 UTC) #21
*** Submitted as https://code.google.com/p/go/source/detail?r=a0d484937ee6 ***

runtime: round stack size to power of 2.
Fixes build on windows/386 and plan9/386.
Fixes issue 7487.

LGTM=mattn.jp, dvyukov, rsc
R=golang-codereviews, mattn.jp, dvyukov, 0intro, rsc
CC=golang-codereviews
https://codereview.appspot.com/72360043
Sign in to reply to this message.

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