Groups
Groups
Sign in
Groups
Groups
golang-dev
Conversations
About
Send feedback
Help
Re: code review 7473044: cmd/gc: support channel types in the garbage collector (issue 7473044)
50 views
Skip to first unread message
dvy...@google.com
unread,
Mar 8, 2013, 10:16:35 AM
3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 0xE2.0x...@gmail.com, golan...@googlegroups.com, r...@golang.org, re...@codereview-hr.appspotmail.com
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c
File src/pkg/runtime/mgc0.c (right):
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode716
src/pkg/runtime/mgc0.c:716: chan_ret = 0;
s/0/nil/
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode975
src/pkg/runtime/mgc0.c:975: runtime·lock(&lock);
why do you need this lock?
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode1008
src/pkg/runtime/mgc0.c:1008: if(chan_ret == 0) {
s/0/nil/
drop {}
https://codereview.appspot.com/7473044/
0xE2.0x...@gmail.com
unread,
Mar 8, 2013, 10:25:23 AM
3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com, dvy...@google.com, golan...@googlegroups.com, r...@golang.org, re...@codereview-hr.appspotmail.com
Hello
golan...@googlegroups.com
,
dvy...@google.com
(cc:
golan...@googlegroups.com
,
r...@golang.org
),
Please take another look.
https://codereview.appspot.com/7473044/
0xE2.0x...@gmail.com
unread,
Mar 8, 2013, 10:29:51 AM
3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com, dvy...@google.com, golan...@googlegroups.com, r...@golang.org, re...@codereview-hr.appspotmail.com
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c
File src/pkg/runtime/mgc0.c (right):
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode716
src/pkg/runtime/mgc0.c:716: chan_ret = 0;
On 2013/03/08 15:16:35, dvyukov wrote:
> s/0/nil/
Done.
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode975
src/pkg/runtime/mgc0.c:975: runtime·lock(&lock);
On 2013/03/08 15:16:35, dvyukov wrote:
> why do you need this lock?
There is no compare&swap in flushptrbuf(). flushptrbuf() uses the same
lock.
https://codereview.appspot.com/7473044/diff/1/src/pkg/runtime/mgc0.c#newcode1008
src/pkg/runtime/mgc0.c:1008: if(chan_ret == 0) {
On 2013/03/08 15:16:35, dvyukov wrote:
> s/0/nil/
> drop {}
Done.
https://codereview.appspot.com/7473044/
dvy...@google.com
unread,
Mar 8, 2013, 10:48:31 AM
3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 0xE2.0x...@gmail.com, golan...@googlegroups.com, golan...@googlegroups.com, r...@golang.org, re...@codereview-hr.appspotmail.com
LGTM generally, but I did not follow the GC changes very closely, so
better reviewed by somebody else as well.
https://codereview.appspot.com/7473044/
Reply all
Reply to author
Forward
0 new messages