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

Issue 6452046: code review 6452046: runtime: round return value address in runtime.equal (Closed)

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

Description

runtime: round return value address in runtime.equal Fixes issue 3866.

Patch Set 1 #

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

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

Total comments: 2

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

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

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

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

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

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

Total comments: 3

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

Total comments: 1

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

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

Total comments: 4

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

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

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
M src/pkg/runtime/alg.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -4 lines 1 comment Download
A test/fixedbugs/bug449.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 24
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 10 months ago (2012-07-26 04:27:47 UTC) #1
nigeltao
Should the test file be called arrayequal.go instead of equal.go?? http://codereview.appspot.com/6452046/diff/1002/test/equal.go File test/equal.go (right): http://codereview.appspot.com/6452046/diff/1002/test/equal.go#newcode22 ...
12 years, 10 months ago (2012-07-26 04:40:58 UTC) #2
minux1
On 2012/07/26 04:40:58, nigeltao wrote: > Should the test file be called arrayequal.go instead of ...
12 years, 10 months ago (2012-07-26 05:29:13 UTC) #3
nigeltao
For backquote strings, I was imagining something more like the program below. WDYT? package main ...
12 years, 10 months ago (2012-07-26 06:00:37 UTC) #4
minux1
On 2012/07/26 06:00:37, nigeltao wrote: > For backquote strings, I was imagining something more like ...
12 years, 10 months ago (2012-07-26 06:20:00 UTC) #5
nigeltao
LGTM, but give rsc an opportunity to look at this before you submit. http://codereview.appspot.com/6452046/diff/17002/src/pkg/runtime/alg.c File ...
12 years, 10 months ago (2012-07-26 07:39:58 UTC) #6
r
http://codereview.appspot.com/6452046/diff/17003/test/fixedbugs/bug447.go File test/fixedbugs/bug447.go (right): http://codereview.appspot.com/6452046/diff/17003/test/fixedbugs/bug447.go#newcode7 test/fixedbugs/bug447.go:7: package main please put a comment here that explains ...
12 years, 10 months ago (2012-07-26 15:53:10 UTC) #7
minux1
I found a new problem: this test is not future-proof. this test depends on gc ...
12 years, 10 months ago (2012-07-26 18:18:36 UTC) #8
minux1
http://codereview.appspot.com/6452046/diff/17002/src/pkg/runtime/alg.c File src/pkg/runtime/alg.c (right): http://codereview.appspot.com/6452046/diff/17002/src/pkg/runtime/alg.c#newcode472 src/pkg/runtime/alg.c:472: uintptr ret; On 2012/07/26 07:39:58, nigeltao wrote: > byte-sized? ...
12 years, 10 months ago (2012-07-26 19:20:12 UTC) #9
nigeltao
On 27 July 2012 04:18, minux <minux.ma@gmail.com> wrote: > I found a new problem: this ...
12 years, 10 months ago (2012-07-26 23:22:52 UTC) #10
minux1
On Thu, Jul 26, 2012 at 4:22 PM, Nigel Tao <nigeltao@golang.org> wrote: > My opinion ...
12 years, 10 months ago (2012-07-26 23:30:56 UTC) #11
nigeltao
On 27 July 2012 09:30, minux <minux.ma@gmail.com> wrote: > so i suppose i should enhance ...
12 years, 10 months ago (2012-07-26 23:34:35 UTC) #12
minux1
On 2012/07/26 15:53:10, r wrote: http://codereview.appspot.com/6452046/diff/17003/test/fixedbugs/bug447.go#newcode7 > test/fixedbugs/bug447.go:7: package main > please put a comment ...
12 years, 10 months ago (2012-07-27 00:11:20 UTC) #13
r
http://codereview.appspot.com/6452046/diff/7/test/fixedbugs/bug447.go File test/fixedbugs/bug447.go (right): http://codereview.appspot.com/6452046/diff/7/test/fixedbugs/bug447.go#newcode9 test/fixedbugs/bug447.go:9: // return values into account; so in certain cases, ...
12 years, 10 months ago (2012-07-27 00:16:28 UTC) #14
minux1
thank you very much for helping me improving my writing! On 2012/07/27 00:16:28, r wrote: ...
12 years, 10 months ago (2012-07-27 00:44:25 UTC) #15
rsc
LGTM Thanks very much.
12 years, 10 months ago (2012-07-29 23:45:43 UTC) #16
minux1
i'm wondering if we need to round y according to t->align also. (see patch set ...
12 years, 10 months ago (2012-07-30 22:32:19 UTC) #17
nigeltao
On 31 July 2012 08:32, <minux.ma@gmail.com> wrote: > i'm wondering if we need to round ...
12 years, 10 months ago (2012-07-31 05:27:10 UTC) #18
minux1
*** Submitted as http://code.google.com/p/go/source/detail?r=a7752d169d2e *** runtime: round return value address in runtime.equal Fixes issue 3866. ...
12 years, 10 months ago (2012-08-01 03:02:52 UTC) #19
rsc
http://codereview.appspot.com/6452046/diff/17009/src/pkg/runtime/alg.c File src/pkg/runtime/alg.c (right): http://codereview.appspot.com/6452046/diff/17009/src/pkg/runtime/alg.c#newcode475 src/pkg/runtime/alg.c:475: y = x + ROUND(t->size, t->align); This is fine ...
12 years, 10 months ago (2012-08-01 21:26:27 UTC) #20
dave_cheney.net
Minux: will you address this final comment by rsc ? On Thu, Aug 2, 2012 ...
12 years, 9 months ago (2012-08-06 01:56:47 UTC) #21
minux1
On 2012/08/01 21:26:27, rsc wrote: http://codereview.appspot.com/6452046/diff/17009/src/pkg/runtime/alg.c#newcode475 > src/pkg/runtime/alg.c:475: y = x + ROUND(t->size, t->align); > ...
12 years, 9 months ago (2012-08-06 02:05:05 UTC) #22
rsc
> what i am think is this: > runtime.align is not designed for comparing array ...
12 years, 9 months ago (2012-08-06 19:48:09 UTC) #23
minux1
12 years, 9 months ago (2012-08-07 01:41:38 UTC) #24
On 2012/08/06 19:48:09, rsc wrote:
> no. a type T's size is always a multiple of its alignment.
> the array was only an example of why this must be true (so that every
> element of [10]T is properly aligned). arrays don't have to be
> involved for it to be true. it's always true.
ok, i was confused by some ROUND code in hashmap.c,
and i understand now. will remove this unneeded ROUND.
Sign in to reply to this message.

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