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

Issue 148590043: code review 148590043: context: fix TestAllocs to account for ints in interfaces (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by Sameer Ajmani
Modified:
10 years, 5 months ago
Reviewers:
adonovan
CC:
rsc, bradfitz, adonovan, golang-codereviews
Visibility:
Public.

Description

context: fix TestAllocs to account for ints in interfaces Recent runtime changes mean that these are stored indirectly, requiring additional allocation.

Patch Set 1 #

Total comments: 4

Patch Set 2 : diff -r a35a4571eb78502ce9195641da205f1ea0c5e453 https://code.google.com/p/go.net #

Total comments: 4

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M context/context.go View 1 2 2 chunks +11 lines, -10 lines 0 comments Download
M context/context_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9
Sameer Ajmani
Hello rsc@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.net
10 years, 5 months ago (2014-10-06 16:55:40 UTC) #1
bradfitz
https://codereview.appspot.com/148590043/diff/1/context/context.go File context/context.go (right): https://codereview.appspot.com/148590043/diff/1/context/context.go#newcode164 context/context.go:164: func (n emptyCtx) String() string { why not here? ...
10 years, 5 months ago (2014-10-06 17:00:36 UTC) #2
Sameer Ajmani
https://codereview.appspot.com/148590043/diff/1/context/context.go File context/context.go (right): https://codereview.appspot.com/148590043/diff/1/context/context.go#newcode164 context/context.go:164: func (n emptyCtx) String() string { On 2014/10/06 17:00:36, ...
10 years, 5 months ago (2014-10-07 14:51:00 UTC) #3
Sameer Ajmani
Ping. I'd like to get this in. On Tue, Oct 7, 2014 at 10:50 AM, ...
10 years, 5 months ago (2014-10-09 14:53:39 UTC) #4
Sameer Ajmani
Adding adononvan as a reviewer since both rsc and bradfitz are travelling. On 2014/10/09 14:53:39, ...
10 years, 5 months ago (2014-10-09 16:12:09 UTC) #5
adonovan
On 2014/10/09 16:12:09, Sameer Ajmani wrote: > Adding adononvan as a reviewer since both rsc ...
10 years, 5 months ago (2014-10-09 16:30:34 UTC) #6
adonovan
https://codereview.appspot.com/148590043/diff/20001/context/context.go File context/context.go (right): https://codereview.appspot.com/148590043/diff/20001/context/context.go#newcode146 context/context.go:146: type emptyCtx int // not struct{} since we need ...
10 years, 5 months ago (2014-10-09 16:30:40 UTC) #7
Sameer Ajmani
*** Submitted as https://code.google.com/p/go/source/detail?r=46f07e774bb1&repo=net *** context: fix TestAllocs to account for ints in interfaces Recent ...
10 years, 5 months ago (2014-10-09 17:51:24 UTC) #8
Sameer Ajmani
10 years, 5 months ago (2014-10-09 17:51:42 UTC) #9
Message was sent while issue was closed.
https://codereview.appspot.com/148590043/diff/20001/context/context.go
File context/context.go (right):

https://codereview.appspot.com/148590043/diff/20001/context/context.go#newcod...
context/context.go:146: type emptyCtx int // not struct{} since we need distict
pointers
On 2014/10/09 16:30:39, adonovan wrote:
> "distinct"
> 
> better:
> // not struct{}, since all vars of this type must have distinct addresses

Done.

https://codereview.appspot.com/148590043/diff/20001/context/context.go#newcod...
context/context.go:176: return &e
On 2014/10/09 16:30:39, adonovan wrote:
> Simplify:
>   return new(emptyCtx)
> 
> It hardly seems worth having this func now that its body is a short
expression.

Done.
Sign in to reply to this message.

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