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

Issue 53430043: code review 53430043: runtime, cmd/gc: Get rid of vararg channel calls. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by khr
Modified:
11 years, 5 months ago
Reviewers:
rsc, dvyukov
CC:
golang-codereviews, gobot, rsc, dvyukov
Visibility:
Public.

Description

runtime, cmd/gc: Get rid of vararg channel calls. Vararg C calls present a problem for the GC because the argument types are not derivable from the signature. Remove them by passing pointers to channel elements instead of the channel elements directly.

Patch Set 1 #

Patch Set 2 : diff -r 761cf9b4e530 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 9c22c9bc4885 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 9c22c9bc4885 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r 9c22c9bc4885 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 6 : diff -r 9c870196cb6b https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -50 lines) Patch
M src/cmd/gc/builtin.c View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/gc/runtime.go View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/gc/select.c View 1 1 chunk +13 lines, -1 line 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 7 chunks +41 lines, -9 lines 0 comments Download
M src/pkg/runtime/chan.c View 1 2 5 chunks +20 lines, -32 lines 0 comments Download

Messages

Total messages: 5
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
11 years, 5 months ago (2014-01-16 22:55:22 UTC) #1
gobot
R=rsc@golang.org (assigned by bradfitz@golang.org)
11 years, 5 months ago (2014-01-17 00:05:29 UTC) #2
dvyukov
LGTM for chan.c Doesn't it affect escape analysis? Doesn't this force heap allocation for values ...
11 years, 5 months ago (2014-01-17 08:58:49 UTC) #3
rsc
LGTM To answer Dmitriy's question, escape analysis is not affected because it analyzes before walk ...
11 years, 5 months ago (2014-01-17 14:45:08 UTC) #4
khr
11 years, 5 months ago (2014-01-17 22:48:48 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=10e099e6ab49 ***

runtime, cmd/gc: Get rid of vararg channel calls.

Vararg C calls present a problem for the GC because the
argument types are not derivable from the signature.  Remove
them by passing pointers to channel elements instead of the
channel elements directly.

R=golang-codereviews, gobot, rsc, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/53430043
Sign in to reply to this message.

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