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

Issue 4766042: code review 4766042: runtime: add per-M caches for MemStats (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by dvyukov
Modified:
13 years, 9 months ago
Reviewers:
CC:
aam, golang-dev, rsc
Visibility:
Public.

Description

runtime: add per-M caches for MemStats Avoid touching centralized state during memory manager operations.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 035ebb6d7ab1 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 035ebb6d7ab1 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 035ebb6d7ab1 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r e46d4fade278 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r e46d4fade278 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r e46d4fade278 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 11 : diff -r e46d4fade278 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -48 lines) Patch
M src/pkg/runtime/malloc.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -4 lines 0 comments Download
M src/pkg/runtime/malloc.goc View 1 2 3 4 5 6 7 11 chunks +38 lines, -26 lines 0 comments Download
M src/pkg/runtime/mcache.c View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 7 4 chunks +21 lines, -8 lines 0 comments Download
M src/pkg/runtime/mheap.c View 1 2 3 4 5 6 7 2 chunks +2 lines, -8 lines 0 comments Download
M test/mallocrep.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M test/mallocrep1.go View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8
dvyukov
Hello rsc@golang.com, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-07-18 18:47:27 UTC) #1
dvyukov
Some tests get broken as expected. I had to add calls to runtime.GC() into some ...
13 years, 9 months ago (2011-07-18 18:49:34 UTC) #2
rsc
LGTM Thanks. http://codereview.appspot.com/4766042/diff/17006/src/pkg/runtime/malloc.h File src/pkg/runtime/malloc.h (right): http://codereview.appspot.com/4766042/diff/17006/src/pkg/runtime/malloc.h#newcode271 src/pkg/runtime/malloc.h:271: int64 local_alloc; // bytes allocated and still ...
13 years, 9 months ago (2011-07-18 18:50:44 UTC) #3
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=a7eaa59037d4 *** runtime: add per-M caches for MemStats Avoid touching centralized state ...
13 years, 9 months ago (2011-07-18 18:53:00 UTC) #4
aam
> Description: > runtime: add per-M caches for MemStats > Avoid touching centralized state during ...
13 years, 9 months ago (2011-07-18 18:53:23 UTC) #5
dvyukov
Hello mirtchovski@gmail.com (cc: golang-dev@googlegroups.com, rsc@golang.org), Please take another look.
13 years, 9 months ago (2011-07-18 18:53:44 UTC) #6
dvyukov
On 2011/07/18 18:53:23, aam wrote: > > Description: > > runtime: add per-M caches for ...
13 years, 9 months ago (2011-07-18 18:56:01 UTC) #7
rsc
13 years, 9 months ago (2011-07-18 18:56:25 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=00f0d6062b5d ***

runtime: add per-M caches for MemStats
Avoid touching centralized state during
memory manager operations.

R=mirtchovski
CC=golang-dev, rsc
http://codereview.appspot.com/4766042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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