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

Issue 145790043: code review 145790043: runtime: change minimum stack size to 2K. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by khr
Modified:
9 years, 6 months ago
Reviewers:
aram2, dvyukov
CC:
golang-codereviews, dvyukov, khr1, aram
Visibility:
Public.

Description

runtime: change minimum stack size to 2K. It will be 8K on windows because it needs 4K for the OS. Similarly, plan9 will be 4K. On linux/amd64, reduces size of 100,000 goroutines from ~819MB to ~245MB. Update issue 7514

Patch Set 1 #

Patch Set 2 : diff -r 38f88b06704247749b469a2c9149ef5b35230cad https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 38f88b06704247749b469a2c9149ef5b35230cad https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 38f88b06704247749b469a2c9149ef5b35230cad https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1

Patch Set 5 : diff -r 26e1a4458c1841a9ca12bea7da0a8dbbf1866524 https://khr%40golang.org@code.google.com/p/go/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -13 lines) Patch
M src/runtime/proc.c View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M src/runtime/stack.h View 1 1 chunk +12 lines, -9 lines 0 comments Download

Messages

Total messages: 8
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
9 years, 7 months ago (2014-09-16 21:42:06 UTC) #1
dvyukov
https://codereview.appspot.com/145790043/diff/60001/src/runtime/proc.c File src/runtime/proc.c (right): https://codereview.appspot.com/145790043/diff/60001/src/runtime/proc.c#newcode2203 src/runtime/proc.c:2203: if(siz >= StackMin - 4*sizeof(uintreg) - sizeof(void*)) please comment ...
9 years, 7 months ago (2014-09-16 22:28:40 UTC) #2
khr1
PTAL On Tue, Sep 16, 2014 at 3:28 PM, <dvyukov@google.com> wrote: > > https://codereview.appspot.com/145790043/diff/60001/src/runtime/proc.c > ...
9 years, 7 months ago (2014-09-17 00:09:49 UTC) #3
dvyukov
LGTM
9 years, 7 months ago (2014-09-17 00:24:42 UTC) #4
aram
Why does Plan 9 require 4k?
9 years, 7 months ago (2014-09-17 05:43:16 UTC) #5
khr1
Plan 9 reserves 512 bytes of the stack for the note handler. We add that ...
9 years, 7 months ago (2014-09-17 06:23:37 UTC) #6
khr
*** Submitted as https://code.google.com/p/go/source/detail?r=2acb59fb63b6 *** runtime: change minimum stack size to 2K. It will be ...
9 years, 7 months ago (2014-09-17 15:32:22 UTC) #7
aram2
9 years, 6 months ago (2014-10-03 13:30:48 UTC) #8
Apologies for the long delay.

On Wed, Sep 17, 2014 at 8:23 AM, 'Keith Randall' via
golang-codereviews <golang-codereviews@googlegroups.com> wrote:
> Plan 9 reserves 512 bytes of the stack for the note handler.

+cc ality, 0intro

Surely we need this only for the M stack?

-- 
Aram Hăvărneanu
Sign in to reply to this message.

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