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

Issue 7026044: code review 7026044: runtime: faster segmented stacks (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by dvyukov
Modified:
12 years, 2 months ago
Reviewers:
CC:
nigeltao, minux1, rsc, golang-dev
Visibility:
Public.

Description

runtime: faster segmented stacks benchmark old ns/op new ns/op delta BenchmarkStackGrowth 665 548 -17.59% BenchmarkStackGrowth-2 333 274 -17.72% BenchmarkStackGrowth-4 224 168 -25.00% BenchmarkStackGrowth-8 124 91 -26.21% BenchmarkStackGrowth-16 82 70 -14.55% BenchmarkStackGrowth-32 73 59 -19.49%

Patch Set 1 #

Patch Set 2 : diff -r 7b6096868871 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 7b6096868871 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 6867d442bb3d https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2

Patch Set 5 : diff -r d0d76b7fb219 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 12

Patch Set 6 : diff -r 08a1396e9aa7 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r 2a4cb557ddbd https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 8 : diff -r 2a4cb557ddbd https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 9 : diff -r 88d31369e105 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 10 : diff -r 88d31369e105 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 11 : diff -r 88d31369e105 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -21 lines) Patch
M src/pkg/runtime/malloc.goc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 8 5 chunks +33 lines, -19 lines 0 comments Download

Messages

Total messages: 9
dvyukov
Please review the following change
12 years, 2 months ago (2013-01-03 14:31:58 UTC) #1
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 2 months ago (2013-01-03 15:27:50 UTC) #2
nigeltao
https://codereview.appspot.com/7026044/diff/7001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7026044/diff/7001/src/pkg/runtime/proc.c#newcode1125 src/pkg/runtime/proc.c:1125: label.sp = top->gobuf.sp; Can this be label = top->gobuf;
12 years, 2 months ago (2013-01-04 01:03:33 UTC) #3
dvyukov
https://codereview.appspot.com/7026044/diff/7001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7026044/diff/7001/src/pkg/runtime/proc.c#newcode1125 src/pkg/runtime/proc.c:1125: label.sp = top->gobuf.sp; On 2013/01/04 01:03:33, nigeltao wrote: > ...
12 years, 2 months ago (2013-01-04 05:30:31 UTC) #4
minux1
https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c#newcode1117 src/pkg/runtime/proc.c:1117: dstend = dst + argsize/PtrSize; how about s/PtrSize/sizeof(*dst)/ ? ...
12 years, 2 months ago (2013-01-05 14:09:00 UTC) #5
rsc
https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c#newcode1117 src/pkg/runtime/proc.c:1117: dstend = dst + argsize/PtrSize; On 2013/01/05 14:09:00, minux ...
12 years, 2 months ago (2013-01-07 05:28:47 UTC) #6
dvyukov
PTAL https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7026044/diff/3008/src/pkg/runtime/proc.c#newcode1117 src/pkg/runtime/proc.c:1117: dstend = dst + argsize/PtrSize; On 2013/01/05 14:09:00, ...
12 years, 2 months ago (2013-01-08 12:59:02 UTC) #7
rsc
LGTM
12 years, 2 months ago (2013-01-09 19:13:24 UTC) #8
dvyukov
12 years, 2 months ago (2013-01-10 07:45:35 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=c8c8cc10a3da ***

runtime: faster segmented stacks
benchmark                      old ns/op    new ns/op    delta
BenchmarkStackGrowth                 665          548  -17.59%
BenchmarkStackGrowth-2               333          274  -17.72%
BenchmarkStackGrowth-4               224          168  -25.00%
BenchmarkStackGrowth-8               124           91  -26.21%
BenchmarkStackGrowth-16               82           70  -14.55%
BenchmarkStackGrowth-32               73           59  -19.49%

R=nigeltao, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7026044
Sign in to reply to this message.

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