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

Issue 7716048: code review 7716048: reflect: add garbage collection info in ChanOf, MapOf, ...

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by rsc
Modified:
11 years, 9 months ago
Reviewers:
r, iant
CC:
0xe2.0x9a.0x9b_gmail.com, r, iant, golang-dev
Visibility:
Public.

Description

reflect: add garbage collection info in ChanOf, MapOf, PtrTo, SliceOf ArrayOf will remain unexported (and therefore unused) for Go 1.1. Fixes issue 4375.

Patch Set 1 #

Patch Set 2 : diff -r 16f65c9ab399 https://go.googlecode.com/hg/ #

Total comments: 5

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

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

Total comments: 5

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -14 lines) Patch
M src/cmd/gc/reflect.c View 1 2 3 4 5 chunks +7 lines, -0 lines 0 comments Download
M src/pkg/reflect/all_test.go View 1 2 6 chunks +183 lines, -0 lines 0 comments Download
M src/pkg/reflect/type.go View 1 2 3 4 9 chunks +159 lines, -14 lines 0 comments Download
M src/pkg/runtime/hashmap.c View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mgc0.h View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22
rsc
Hello atom (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 1 month ago (2013-03-15 17:51:59 UTC) #1
rsc
Please take a careful look at this. It is probably all wrong. I would also ...
12 years, 1 month ago (2013-03-15 17:52:35 UTC) #2
atom
On 2013/03/15 17:52:35, rsc wrote: > Please take a careful look at this. It is ...
12 years, 1 month ago (2013-03-15 18:46:36 UTC) #3
r
https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/all_test.go File src/pkg/reflect/all_test.go (right): https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/all_test.go#newcode1940 src/pkg/reflect/all_test.go:1940: //XXX ??? https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go File src/pkg/reflect/type.go (right): https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go#newcode1002 src/pkg/reflect/type.go:1002: // ...
12 years, 1 month ago (2013-03-15 18:54:26 UTC) #4
atom
https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go File src/pkg/reflect/type.go (right): https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go#newcode1002 src/pkg/reflect/type.go:1002: // garbage collection program for pointer to memory without ...
12 years, 1 month ago (2013-03-15 19:09:14 UTC) #5
rsc
Re: XXX, the tests are not done yet. Part of the reason to mail it ...
12 years, 1 month ago (2013-03-15 19:23:25 UTC) #6
atom
On 2013/03/15 19:09:14, atom wrote: > https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go > File src/pkg/reflect/type.go (right): > > https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go#newcode1002 > ...
12 years, 1 month ago (2013-03-15 19:26:50 UTC) #7
rsc
The details of the garbage collector aren't up for redesign today. I'll change program to ...
12 years, 1 month ago (2013-03-15 19:36:20 UTC) #8
atom
https://codereview.appspot.com/7716048/diff/2001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/7716048/diff/2001/src/cmd/gc/reflect.c#newcode1087 src/cmd/gc/reflect.c:1087: // NOTE: If the TCHAN representation changes to include ...
12 years, 1 month ago (2013-03-16 07:36:36 UTC) #9
atom
On 2013/03/15 17:52:35, rsc wrote: > I would also appreciate suggestions on what might work ...
12 years, 1 month ago (2013-03-17 17:27:45 UTC) #10
rsc
We don't necessarily have to treat the type info found in various data structures as ...
12 years, 1 month ago (2013-03-18 14:48:32 UTC) #11
atom
https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go File src/pkg/reflect/type.go (right): https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go#newcode1350 src/pkg/reflect/type.go:1350: var lookupCache struct { Is it possible for reflection ...
12 years, 1 month ago (2013-03-18 16:15:23 UTC) #12
rsc
On Mon, Mar 18, 2013 at 12:15 PM, <0xE2.0x9A.0x9B@gmail.com> wrote: > > https://codereview.appspot.**com/7716048/diff/2001/src/pkg/** > reflect/type.go<https://codereview.appspot.com/7716048/diff/2001/src/pkg/reflect/type.go> ...
12 years, 1 month ago (2013-03-18 20:39:15 UTC) #13
rsc
PTAL I have written tests and confirmed that they work by breaking each of the ...
12 years, 1 month ago (2013-03-24 18:11:06 UTC) #14
r
https://codereview.appspot.com/7716048/diff/21001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/7716048/diff/21001/src/cmd/gc/reflect.c#newcode1160 src/cmd/gc/reflect.c:1160: // at least once ArrayOf is implemented. isn't it ...
12 years, 1 month ago (2013-03-25 16:51:01 UTC) #15
iant
LGTM
12 years, 1 month ago (2013-03-25 17:35:06 UTC) #16
rsc
https://codereview.appspot.com/7716048/diff/21001/src/pkg/reflect/all_test.go File src/pkg/reflect/all_test.go (right): https://codereview.appspot.com/7716048/diff/21001/src/pkg/reflect/all_test.go#newcode2203 src/pkg/reflect/all_test.go:2203: func TestPtrToGC(t *testing.T) { On 2013/03/25 16:51:01, r wrote: ...
12 years, 1 month ago (2013-03-25 19:59:21 UTC) #17
atom
On 2013/03/24 18:11:06, rsc wrote: > PTAL > > I have written tests and confirmed ...
12 years, 1 month ago (2013-03-25 21:23:10 UTC) #18
rsc
PTAL https://codereview.appspot.com/7716048/diff/21001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/7716048/diff/21001/src/cmd/gc/reflect.c#newcode1160 src/cmd/gc/reflect.c:1160: // at least once ArrayOf is implemented. On ...
12 years, 1 month ago (2013-03-25 22:13:16 UTC) #19
r
LGTM
12 years, 1 month ago (2013-03-25 22:15:32 UTC) #20
r
*** Submitted as https://code.google.com/p/go/source/detail?r=3792a253f8a4 *** reflect: add garbage collection info in ChanOf, MapOf, PtrTo, SliceOf ...
12 years, 1 month ago (2013-03-26 18:50:31 UTC) #21
remyoudompheng
11 years, 9 months ago (2013-07-21 19:52:00 UTC) #22
R=close
Sign in to reply to this message.

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