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

Issue 192030043: code review 192030043: compiler: Use function receiver name in mangled named t...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by cmang
Modified:
10 years, 9 months ago
Reviewers:
iant
CC:
iant, gofrontend-dev_googlegroups.com
Visibility:
Public.

Description

compiler: Use function receiver name in mangled named type descriptor. If named types with similar names are defined inside of methods with similar names, it was possible that the mangled type names would be the same, leading to multiple definitions of type descriptor and garbage collection info variables. This can only occur with similarly named methods across different receivers, so we use the receiver name to distinguish. Fixes issue 33.

Patch Set 1 #

Patch Set 2 : diff -r 9753943fcd89 https://code.google.com/p/gofrontend #

Patch Set 3 : diff -r 9753943fcd89 https://code.google.com/p/gofrontend #

Total comments: 2

Patch Set 4 : diff -r 17ca3491f71a9ca7cc9245340492014801d921c9 https://code.google.com/p/gofrontend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M go/types.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 5
cmang
Hello iant@golang.org (cc: gofrontend-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/gofrontend
10 years, 10 months ago (2014-12-19 22:09:07 UTC) #1
iant
https://codereview.appspot.com/192030043/diff/40001/go/types.cc File go/types.cc (right): https://codereview.appspot.com/192030043/diff/40001/go/types.cc#newcode1304 go/types.cc:1304: Gogo::unpack_hidden_name(rcvr->type()->named_type()->name()); I don't think this will work for a ...
10 years, 10 months ago (2014-12-23 23:28:18 UTC) #2
cmang
https://codereview.appspot.com/192030043/diff/40001/go/types.cc File go/types.cc (right): https://codereview.appspot.com/192030043/diff/40001/go/types.cc#newcode1304 go/types.cc:1304: Gogo::unpack_hidden_name(rcvr->type()->named_type()->name()); On 2014/12/23 23:28:17, iant wrote: > I don't ...
10 years, 10 months ago (2014-12-29 22:07:06 UTC) #3
iant
LGTM
10 years, 9 months ago (2015-01-06 02:24:18 UTC) #4
iant
10 years, 9 months ago (2015-01-06 02:26:06 UTC) #5
*** Submitted as https://code.google.com/p/gofrontend/source/detail?r=e69aeba5ad07 *** compiler: Use function receiver name in mangled named type descriptor. If named types with similar names are defined inside of methods with similar names, it was possible that the mangled type names would be the same, leading to multiple definitions of type descriptor and garbage collection info variables. This can only occur with similarly named methods across different receivers, so we use the receiver name to distinguish. Fixes issue 33. LGTM=iant R=iant CC=gofrontend-dev https://codereview.appspot.com/192030043 Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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