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

Issue 5302082: code review 5302082: gc: Don't pollute the xmethod list with non-methods. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by lvd
Modified:
13 years, 4 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

gc: Don't pollute the xmethod list with non-methods. Fixes issue 2355. I have a test, but not sure if it's worth adding. Instead i've made the patching-over in reflect.c methods more fatal and more descriptive.

Patch Set 1 #

Patch Set 2 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 8 : diff -r 080e98d350b8 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 9 : diff -r 2326dbb31485 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M src/cmd/gc/reflect.c View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M src/cmd/gc/subr.c View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
A test/fixedbugs/bug372.go View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 9
lvd
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2011-11-03 14:09:15 UTC) #1
lvd
hold on a sec, getthis() != T is not a good test for being a ...
13 years, 4 months ago (2011-11-03 14:23:35 UTC) #2
rsc
thistuple > 0
13 years, 4 months ago (2011-11-03 14:31:07 UTC) #3
lvd
On Thu, Nov 3, 2011 at 15:31, Russ Cox <rsc@golang.org> wrote: > thistuple > 0 ...
13 years, 4 months ago (2011-11-03 14:36:03 UTC) #4
lvd
On 2011/11/03 14:36:03, lvd wrote: > On Thu, Nov 3, 2011 at 15:31, Russ Cox ...
13 years, 4 months ago (2011-11-03 14:41:54 UTC) #5
rsc
http://codereview.appspot.com/5302082/diff/13001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): http://codereview.appspot.com/5302082/diff/13001/src/cmd/gc/reflect.c#newcode163 src/cmd/gc/reflect.c:163: if (f->type->etype != TFUNC || f->type->thistuple == 0) s/if ...
13 years, 4 months ago (2011-11-03 16:47:33 UTC) #6
rsc
LGTM http://codereview.appspot.com/5302082/diff/15001/test/fixedbugs/bug372.go File test/fixedbugs/bug372.go (right): http://codereview.appspot.com/5302082/diff/15001/test/fixedbugs/bug372.go#newcode1 test/fixedbugs/bug372.go:1: // $G $D/$F.go && $L $F.$A && ./$A.out ...
13 years, 4 months ago (2011-11-03 16:48:31 UTC) #7
lvd
http://codereview.appspot.com/5302082/diff/15001/test/fixedbugs/bug372.go File test/fixedbugs/bug372.go (right): http://codereview.appspot.com/5302082/diff/15001/test/fixedbugs/bug372.go#newcode1 test/fixedbugs/bug372.go:1: // $G $D/$F.go && $L $F.$A && ./$A.out || ...
13 years, 4 months ago (2011-11-03 16:50:39 UTC) #8
lvd
13 years, 4 months ago (2011-11-03 16:51:20 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=e1e97028a407 ***

gc: Don't pollute the xmethod list with non-methods.

Fixes issue 2355.

I have a test, but not sure if it's worth adding.  Instead i've made
the patching-over in reflect.c methods more fatal and more descriptive.

R=rsc
CC=golang-dev
http://codereview.appspot.com/5302082
Sign in to reply to this message.

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