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

Issue 9678046: code review 9678046: runtime: remove unused filed from Hchan (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by dvyukov
Modified:
12 years, 1 month ago
Reviewers:
rsc, iant
CC:
golang-dev, dave_cheney.net, minux1, r, iant, rsc
Visibility:
Public.

Description

runtime: remove unused field from Hchan Remove alignment logic as well, it's not respected by chanbuf() anyway.

Patch Set 1 #

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

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

Total comments: 1

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

Total comments: 1

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

Total comments: 2

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M src/pkg/runtime/chan.c View 1 2 3 4 5 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 24
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, 1 month ago (2013-05-24 11:20:28 UTC) #1
dave_cheney.net
On more i5 linux/amd64 machine this appears to have made things a little slower lucky(~/go/src/pkg/runtime) ...
12 years, 1 month ago (2013-05-24 12:09:56 UTC) #2
dave_cheney.net
> lucky(~/go/src/pkg/runtime) % ~/go/misc/benchcmp {old,new}.txt > benchmark old ns/op new ns/op delta > BenchmarkChanUncontended 71 ...
12 years, 1 month ago (2013-05-24 12:15:24 UTC) #3
dave_cheney.net
This CL fails on arm machines, 'fatal error: makechan: bad chan size'
12 years, 1 month ago (2013-05-24 13:07:16 UTC) #4
dvyukov
On 2013/05/24 13:07:16, dfc wrote: > This CL fails on arm machines, 'fatal error: makechan: ...
12 years, 1 month ago (2013-05-24 13:13:34 UTC) #5
dave_cheney.net
I'm going to say no, but Minux may correct me. If there are 8 byte ...
12 years, 1 month ago (2013-05-24 13:15:01 UTC) #6
dave_cheney.net
I added back the uint8 elemalign field, and another uint8 _pad2 at the bottom to ...
12 years, 1 month ago (2013-05-24 13:16:39 UTC) #7
dvyukov
breaks on 386 as well so we were lying ourselves, the alignment was never enforced ...
12 years, 1 month ago (2013-05-24 13:20:18 UTC) #8
dvyukov
Removed the check, PTAL
12 years, 1 month ago (2013-05-24 13:27:43 UTC) #9
dave_cheney.net
On 2013/05/24 13:27:43, dvyukov wrote: > Removed the check, PTAL Results from linux/arm chromebook localhost(~/go/src/pkg/runtime) ...
12 years, 1 month ago (2013-05-24 13:42:04 UTC) #10
dave_cheney.net
Also, could this lead to unaligned loads on arm ?
12 years, 1 month ago (2013-05-24 13:56:59 UTC) #11
minux1
On Fri, May 24, 2013 at 9:13 PM, <dvyukov@google.com> wrote: > On 2013/05/24 13:07:16, dfc ...
12 years, 1 month ago (2013-05-24 15:17:29 UTC) #12
dvyukov
On Fri, May 24, 2013 at 7:17 PM, minux <minux.ma@gmail.com> wrote: > > On Fri, ...
12 years, 1 month ago (2013-05-24 15:26:12 UTC) #13
dave_cheney.net
On 2013/05/24 13:56:59, dfc wrote: > Also, could this lead to unaligned loads on arm ...
12 years, 1 month ago (2013-05-25 02:27:34 UTC) #14
r
Please fix the typo in the description: s/filed/field/
12 years, 1 month ago (2013-05-25 02:53:17 UTC) #15
dvyukov
On 2013/05/25 02:53:17, r wrote: > Please fix the typo in the description: s/filed/field/ Done
12 years, 1 month ago (2013-05-25 13:44:41 UTC) #16
iant
https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c File src/pkg/runtime/chan.c (left): https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c#oldcode108 src/pkg/runtime/chan.c:108: // calculate rounded size of Hchan OK, I can ...
12 years, 1 month ago (2013-05-31 18:48:58 UTC) #17
dvyukov
On 2013/05/31 18:48:58, iant wrote: > https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c > File src/pkg/runtime/chan.c (left): > > https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c#oldcode108 > ...
12 years, 1 month ago (2013-06-01 21:05:07 UTC) #18
rsc
LGTM
12 years, 1 month ago (2013-06-03 20:36:12 UTC) #19
dvyukov
On 2013/05/31 18:48:58, iant wrote: > https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c > File src/pkg/runtime/chan.c (left): > > https://codereview.appspot.com/9678046/diff/14001/src/pkg/runtime/chan.c#oldcode108 > ...
12 years, 1 month ago (2013-06-06 10:26:13 UTC) #20
dave_cheney.net
https://codereview.appspot.com/9678046/diff/29001/src/pkg/runtime/chan.c File src/pkg/runtime/chan.c (right): https://codereview.appspot.com/9678046/diff/29001/src/pkg/runtime/chan.c#newcode41 src/pkg/runtime/chan.c:41: uint16 pad; // ensures proper alignment of the buffer ...
12 years, 1 month ago (2013-06-06 12:55:52 UTC) #21
dvyukov
On 2013/06/06 12:55:52, dfc wrote: > https://codereview.appspot.com/9678046/diff/29001/src/pkg/runtime/chan.c > File src/pkg/runtime/chan.c (right): > > https://codereview.appspot.com/9678046/diff/29001/src/pkg/runtime/chan.c#newcode41 > ...
12 years, 1 month ago (2013-06-06 16:10:43 UTC) #22
iant
LGTM
12 years, 1 month ago (2013-06-06 18:21:55 UTC) #23
dvyukov
12 years, 1 month ago (2013-06-06 19:06:21 UTC) #24
*** Submitted as https://code.google.com/p/go/source/detail?r=623df01aa32b ***

runtime: remove unused field from Hchan
Remove alignment logic as well, it's not respected by chanbuf() anyway.

R=golang-dev, dave, minux.ma, r, iant, rsc
CC=golang-dev
https://codereview.appspot.com/9678046
Sign in to reply to this message.

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