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

Issue 143150043: code review 143150043: runtime: account for tiny allocs, for testing.AllocsPerRun (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by rsc
Modified:
9 years, 7 months ago
Reviewers:
r, dvyukov, bradfitz
CC:
bradfitz, r, dvyukov, golang-codereviews, iant, khr
Visibility:
Public.

Description

runtime: account for tiny allocs, for testing.AllocsPerRun Fixes issue 8734.

Patch Set 1 #

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -3 lines) Patch
M src/runtime/malloc.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M src/runtime/malloc.c View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M src/runtime/malloc.go View 1 2 chunks +1 line, -1 line 0 comments Download
M src/runtime/mem.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/mgc0.c View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/mheap.c View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A src/testing/allocs_test.go View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 12
rsc
Hello bradfitz (cc: dvyukov, golang-codereviews@googlegroups.com, iant, khr, r), I'd like you to review this change ...
9 years, 7 months ago (2014-09-16 17:44:31 UTC) #1
r
LGTM go1.4.text needs to know about this
9 years, 7 months ago (2014-09-16 17:47:23 UTC) #2
bradfitz
LGTM Thanks! On Tue, Sep 16, 2014 at 1:44 PM, <rsc@golang.org> wrote: > Reviewers: bradfitz, ...
9 years, 7 months ago (2014-09-16 17:50:59 UTC) #3
rsc
dmitriy, should i wait for you?
9 years, 7 months ago (2014-09-16 21:41:20 UTC) #4
dvyukov
https://codereview.appspot.com/143150043/diff/40001/src/runtime/mem.go File src/runtime/mem.go (right): https://codereview.appspot.com/143150043/diff/40001/src/runtime/mem.go#newcode20 src/runtime/mem.go:20: TinyAllocs uint64 // number of tiny allocations merged into ...
9 years, 7 months ago (2014-09-16 22:08:27 UTC) #5
dvyukov
https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go File src/runtime/malloc.go (right): https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go#newcode123 src/runtime/malloc.go:123: c.local_tinyallocs++ here is a slight potential for overflow if ...
9 years, 7 months ago (2014-09-16 22:15:07 UTC) #6
rsc
https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go File src/runtime/malloc.go (right): https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go#newcode123 src/runtime/malloc.go:123: c.local_tinyallocs++ On 2014/09/16 22:15:07, dvyukov wrote: > here is ...
9 years, 7 months ago (2014-09-16 22:56:41 UTC) #7
dvyukov
LGTM https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go File src/runtime/malloc.go (right): https://codereview.appspot.com/143150043/diff/40001/src/runtime/malloc.go#newcode123 src/runtime/malloc.go:123: c.local_tinyallocs++ On 2014/09/16 22:56:41, rsc wrote: > On ...
9 years, 7 months ago (2014-09-16 23:26:49 UTC) #8
rsc
I renamed TinyAllocs to TinyMallocs, but that got me thinking. One thing we could do ...
9 years, 7 months ago (2014-09-17 00:33:00 UTC) #9
dvyukov
sounds good to me On Tue, Sep 16, 2014 at 5:33 PM, Russ Cox <rsc@golang.org> ...
9 years, 7 months ago (2014-09-17 00:35:23 UTC) #10
bradfitz
Did this just go full circle? Wasn't that the original idea? On Tue, Sep 16, ...
9 years, 7 months ago (2014-09-17 02:27:10 UTC) #11
rsc
9 years, 7 months ago (2014-09-17 18:49:39 UTC) #12
*** Submitted as https://code.google.com/p/go/source/detail?r=d7f9be82dd8e ***

runtime: account for tiny allocs, for testing.AllocsPerRun

Fixes issue 8734.

LGTM=r, bradfitz, dvyukov
R=bradfitz, r, dvyukov
CC=golang-codereviews, iant, khr
https://codereview.appspot.com/143150043
Sign in to reply to this message.

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