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

Issue 132480043: code review 132480043: runtime: increase nosplit area to 192 (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:
aram2, gobot, dvyukov
CC:
r, golang-codereviews
Visibility:
Public.

Description

runtime: increase nosplit area to 192 In CL 131450043, which raised it to 160, I'd raise it to 192 if necessary. Apparently it is necessary on windows/amd64. One note for those concerned about the growth: in the old segmented stack world, we wasted this much space at the bottom of every stack segment. In the new contiguous stack world, each goroutine has only one stack segment, so we only waste this much space once per goroutine. So even raising the limit further might still be a net savings. Fixes windows/amd64 build.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M src/pkg/runtime/stack.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/stack.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/stack_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M test/nosplit.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello r (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-30 04:56:46 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=a4312ec25ccd *** runtime: increase nosplit area to 192 In CL 131450043, which ...
10 years, 8 months ago (2014-08-30 04:56:52 UTC) #2
dvyukov
>One note for those concerned about the growth: Does it actually increase wastage? It seems ...
10 years, 8 months ago (2014-08-30 05:08:59 UTC) #3
gobot
This CL appears to have broken the windows-386 builder. See http://build.golang.org/log/996c46b322fd5014fa6ebb77d6432c71b74bd4e1
10 years, 8 months ago (2014-08-30 06:29:49 UTC) #4
aram2
Thanks. Now I will be able to remove a whole bunch of ugly hacks from ...
10 years, 8 months ago (2014-08-30 09:30:02 UTC) #5
rsc
10 years, 8 months ago (2014-08-30 17:29:21 UTC) #6
On Sat, Aug 30, 2014 at 1:08 AM, <dvyukov@google.com> wrote:

> One note for those concerned about the growth:
>>
>
> Does it actually increase wastage? It seems that it leaves total guard
> area size the same, but increases nosplit area at the cost of making
> small stack optimization less efficient. Why is StackSmall size not
> important?
>

It does increase wastage. An ordinary splitting function must always make
sure there are StackLimit bytes below it, in case it calls a nosplit
function chain. So moving the number I am moving affects the instruction
selection optimization but also how much space is actually available.
Sign in to reply to this message.

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