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

Issue 9662046: code review 9662046: cmd/gc: use escape analysis result for make([]T, constant (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by remyoudompheng
Modified:
12 years, 1 month ago
Reviewers:
DMorsing
CC:
golang-dev, dave_cheney.net, DMorsing
Visibility:
Public.

Description

cmd/gc: use escape analysis result for make([]T, constant Escape analysis already gives that the underlying array does not escape but the result was ignored. Fixes issue 5484.

Patch Set 1 #

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

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

Total comments: 2

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

Patch Set 5 : diff -r 77be301f21af https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M src/cmd/gc/walk.c View 1 1 chunk +24 lines, -7 lines 0 comments Download

Messages

Total messages: 12
remyoudompheng
Hello golang-dev@googlegroups.com (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-05-22 21:41:28 UTC) #1
dave_cheney.net
Thank you. Why did the CL not need any modifications to test/escape*.go ? On 23/05/2013, ...
12 years, 1 month ago (2013-05-22 21:44:34 UTC) #2
remyoudompheng
The occurences of the pattern in the standard library are the following: pkg/compress/bzip2/bzip2.go:189: putting make([]bool, ...
12 years, 1 month ago (2013-05-22 21:44:45 UTC) #3
remyoudompheng
On 2013/05/22 21:44:34, dfc wrote: > Thank you. Why did the CL not need any ...
12 years, 1 month ago (2013-05-22 21:45:14 UTC) #4
dave_cheney.net
Ok, that was my mistake, I didn't realise that the escape*.go tests were only looking ...
12 years, 1 month ago (2013-05-22 21:53:35 UTC) #5
dave_cheney.net
Thanks Rémy, I think there is also a typo in the CL description. https://codereview.appspot.com/9662046/diff/4001/src/cmd/gc/walk.c File ...
12 years, 1 month ago (2013-05-23 04:48:52 UTC) #6
remyoudompheng
(fixed typo in description) https://codereview.appspot.com/9662046/diff/4001/src/cmd/gc/walk.c File src/cmd/gc/walk.c (right): https://codereview.appspot.com/9662046/diff/4001/src/cmd/gc/walk.c#newcode1256 src/cmd/gc/walk.c:1256: && mpgetfix(r->val.u.xval) < (1ULL<<16) / ...
12 years, 1 month ago (2013-05-23 06:11:20 UTC) #7
dave_cheney.net
Hmm, I thought that 1ULL<<16 would be common constant, but there are no other occurrences, ...
12 years, 1 month ago (2013-05-23 07:53:05 UTC) #8
dave_cheney.net
ping
12 years, 1 month ago (2013-05-27 22:05:57 UTC) #9
DMorsing
LGTM.
12 years, 1 month ago (2013-05-28 06:21:04 UTC) #10
remyoudompheng
I will submit this in a few hours if no-one objects.
12 years, 1 month ago (2013-05-29 21:42:26 UTC) #11
remyoudompheng
12 years, 1 month ago (2013-05-30 06:32:14 UTC) #12
*** Submitted as https://code.google.com/p/go/source/detail?r=7bd52af9db1c ***

cmd/gc: use escape analysis result for make([]T, constant

Escape analysis already gives that the underlying array
does not escape but the result was ignored.

Fixes issue 5484.

R=golang-dev, dave, daniel.morsing
CC=golang-dev
https://codereview.appspot.com/9662046
Sign in to reply to this message.

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