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

Issue 5685046: code review 5685046: strconv: run garbage collection before counting allocat... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by rsc
Modified:
13 years, 1 month ago
Reviewers:
CC:
golang-dev, bradfitz, nigeltao
Visibility:
Public.

Description

strconv: run garbage collection before counting allocations in test My theory is that the call to f() allocates, which triggers a garbage collection, which itself may do some allocation, which is being counted. Running a garbage collection before starting the test should avoid this problem. Fixes issue 2894 (I hope).

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/pkg/strconv/itoa_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-02-20 01:08:43 UTC) #1
bradfitz
LGTM On Feb 20, 2012 12:08 PM, <rsc@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > > Message: ...
13 years, 1 month ago (2012-02-20 01:21:12 UTC) #2
nigeltao
On 20 February 2012 12:08, <rsc@golang.org> wrote: > Fixes issue 2984 (I hope). s/2984/2894/.
13 years, 1 month ago (2012-02-20 02:53:42 UTC) #3
rsc
13 years, 1 month ago (2012-02-20 03:13:07 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=9af3fb3bc822 ***

strconv: run garbage collection before counting allocations in test

My theory is that the call to f() allocates, which triggers
a garbage collection, which itself may do some allocation,
which is being counted.  Running a garbage collection
before starting the test should avoid this problem.

Fixes issue 2894 (I hope).

R=golang-dev, bradfitz, nigeltao
CC=golang-dev
http://codereview.appspot.com/5685046
Sign in to reply to this message.

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