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

Issue 7393045: code review 7393045: cmd/gc, reflect, runtime: switch to indirect func value... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rsc
Modified:
11 years, 1 month ago
Reviewers:
brainman
CC:
golang-dev, r, DMorsing, remyoudompheng
Visibility:
Public.

Description

cmd/gc, reflect, runtime: switch to indirect func value representation Step 1 of http://golang.org/s/go11func.

Patch Set 1 #

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

Patch Set 3 : diff -r 019c1c8930bc https://go.googlecode.com/hg/ #

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

Patch Set 5 : diff -r 43cc2ef77ca6 https://go.googlecode.com/hg/ #

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

Patch Set 7 : diff -r 347f4997aab6 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 347f4997aab6 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 347f4997aab6 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 10 : diff -r dbf506e7a2fe https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 11 : diff -r ad69f53ba310 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r dc41bc3036ce https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -89 lines) Patch
src/cmd/5g/gg.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/cmd/5g/ggen.c View 1 2 3 4 5 4 chunks +33 lines, -6 lines 0 comments Download
src/cmd/5g/gsubr.c View 1 2 2 chunks +4 lines, -1 line 0 comments Download
src/cmd/6g/gg.h View 1 1 chunk +1 line, -1 line 0 comments Download
src/cmd/6g/ggen.c View 1 2 3 3 chunks +27 lines, -5 lines 0 comments Download
src/cmd/6g/gsubr.c View 1 2 2 chunks +3 lines, -1 line 0 comments Download
src/cmd/8g/gg.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/cmd/8g/ggen.c View 1 2 3 3 chunks +29 lines, -6 lines 0 comments Download
src/cmd/8g/gsubr.c View 1 2 2 chunks +3 lines, -1 line 0 comments Download
src/cmd/gc/dcl.c View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
src/cmd/gc/gen.c View 1 1 chunk +1 line, -1 line 0 comments Download
src/cmd/gc/go.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
src/cmd/gc/obj.c View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
src/cmd/gc/pgen.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/cmd/gc/walk.c View 1 2 2 chunks +1 line, -2 lines 0 comments Download
src/pkg/reflect/makefunc.go View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
src/pkg/reflect/type.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/pkg/reflect/value.go View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -4 lines 0 comments Download
src/pkg/runtime/asm_386.s View 1 2 4 chunks +23 lines, -2 lines 0 comments Download
src/pkg/runtime/asm_amd64.s View 1 2 4 chunks +23 lines, -2 lines 0 comments Download
src/pkg/runtime/asm_arm.s View 1 2 3 4 5 6 7 4 chunks +24 lines, -2 lines 0 comments Download
src/pkg/runtime/cgocall.c View 1 2 7 chunks +12 lines, -6 lines 0 comments Download
src/pkg/runtime/closure_386.c View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
src/pkg/runtime/closure_amd64.c View 1 2 chunks +5 lines, -1 line 0 comments Download
src/pkg/runtime/closure_arm.c View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
src/pkg/runtime/malloc.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/pkg/runtime/mfinal.c View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
src/pkg/runtime/mgc0.c View 1 2 7 chunks +9 lines, -5 lines 0 comments Download
src/pkg/runtime/mheap.c View 1 2 2 chunks +3 lines, -1 line 0 comments Download
src/pkg/runtime/panic.c View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
src/pkg/runtime/parfor.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
src/pkg/runtime/proc.c View 1 2 3 4 6 chunks +7 lines, -5 lines 0 comments Download
src/pkg/runtime/runtime.h View 1 2 11 chunks +19 lines, -12 lines 0 comments Download
src/pkg/runtime/stack.c View 1 2 1 chunk +4 lines, -1 line 0 comments Download
src/pkg/runtime/time.goc View 1 2 4 chunks +7 lines, -3 lines 0 comments Download
src/pkg/runtime/traceback_arm.c View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
src/pkg/runtime/traceback_x86.c View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
src/pkg/time/sleep.go View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 2 months ago (2013-02-21 19:22:58 UTC) #1
rsc
Looks like a lot, but it's only +316, -89. Russ
11 years, 2 months ago (2013-02-21 19:28:15 UTC) #2
r
LGTM reflect code looks good except for one unclear comment. i will leave the compiler ...
11 years, 2 months ago (2013-02-21 20:04:15 UTC) #3
rsc
On Thu, Feb 21, 2013 at 3:04 PM, <r@golang.org> wrote: > https://codereview.appspot.**com/7393045/diff/18001/src/** > pkg/reflect/value.go#**newcode1220<https://codereview.appspot.com/7393045/diff/18001/src/pkg/reflect/value.go#newcode1220> > ...
11 years, 2 months ago (2013-02-21 20:14:11 UTC) #4
r
if you just said func Value rather than func, it would help
11 years, 2 months ago (2013-02-21 20:33:40 UTC) #5
DMorsing
Did a quick glance of gc/6g/runtime code. Like you said, it's mostly small stuff like ...
11 years, 2 months ago (2013-02-21 20:57:17 UTC) #6
rsc
On Thu, Feb 21, 2013 at 3:33 PM, Rob Pike <r@golang.org> wrote: > if you ...
11 years, 2 months ago (2013-02-21 20:59:53 UTC) #7
remyoudompheng
couldn't find any other remark https://codereview.appspot.com/7393045/diff/25001/src/pkg/reflect/value.go File src/pkg/reflect/value.go (right): https://codereview.appspot.com/7393045/diff/25001/src/pkg/reflect/value.go#newcode400 src/pkg/reflect/value.go:400: fn = *(*unsafe.Pointer)(v.val) is ...
11 years, 2 months ago (2013-02-21 21:32:44 UTC) #8
DMorsing
Scanning over this again, i'm going to say LGTM for 6g/gc/runtime
11 years, 2 months ago (2013-02-21 21:39:03 UTC) #9
rsc
https://codereview.appspot.com/7393045/diff/25001/src/pkg/reflect/value.go File src/pkg/reflect/value.go (right): https://codereview.appspot.com/7393045/diff/25001/src/pkg/reflect/value.go#newcode400 src/pkg/reflect/value.go:400: fn = *(*unsafe.Pointer)(v.val) On 2013/02/21 21:32:44, remyoudompheng wrote: > ...
11 years, 2 months ago (2013-02-21 21:56:16 UTC) #10
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=9f61732fbcca *** cmd/gc, reflect, runtime: switch to indirect func value representation Step ...
11 years, 2 months ago (2013-02-21 22:01:17 UTC) #11
remyoudompheng
Windows builders didn't like it. Rémy.
11 years, 2 months ago (2013-02-21 23:15:06 UTC) #12
brainman
On Friday, 22 February 2013 10:15:05 UTC+11, Rémy wrote: > > Windows builders didn't like ...
11 years, 2 months ago (2013-02-22 00:54:10 UTC) #13
brainman
https://codereview.appspot.com/7393048/
11 years, 2 months ago (2013-02-22 01:08:10 UTC) #14
rsc
11 years, 1 month ago (2013-02-22 15:20:54 UTC) #15
Thank you for fixing this, and apologies for not catching it. I was sure I
hadn't done anything OS-specific. As penance, I set up a Windows Server
2012 machine on Amazon AWS that I can turn on for an hour or two at a time
to fix things like this (at least for windows/amd64) in the future.

Russ
Sign in to reply to this message.

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