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

Issue 57680046: code review 57680046: runtime: introduce MSpan.needzero instead of writing to... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by rsc
Modified:
11 years, 4 months ago
Reviewers:
gobot, dave, iant
CC:
dvyukov, dave_cheney.net, golang-codereviews
Visibility:
Public.

Description

runtime: introduce MSpan.needzero instead of writing to span data This cleans up the code significantly, and it avoids any possible problems with madvise zeroing out some but not all of the data. Fixes issue 6400.

Patch Set 1 #

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

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

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

Total comments: 1

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

Patch Set 6 : diff -r bb13b9997d47 https://code.google.com/p/go/ #

Total comments: 3

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

Patch Set 8 : diff -r a8b97f205736 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -39 lines) Patch
M src/pkg/runtime/malloc.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/runtime/malloc.goc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mcentral.c View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/mheap.c View 1 2 3 4 5 9 chunks +11 lines, -33 lines 0 comments Download

Messages

Total messages: 11
rsc
Hello dvyukov (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 4 months ago (2014-02-12 18:32:04 UTC) #1
dave_cheney.net
https://codereview.appspot.com/57680046/diff/60001/src/pkg/runtime/mheap.c File src/pkg/runtime/mheap.c (right): https://codereview.appspot.com/57680046/diff/60001/src/pkg/runtime/mheap.c#newcode106 src/pkg/runtime/mheap.c:106: if(zeroed && s->needzero) The current code reads as 'if ...
11 years, 4 months ago (2014-02-12 18:38:21 UTC) #2
rsc
PTAL
11 years, 4 months ago (2014-02-12 20:05:00 UTC) #3
dave_cheney.net
LGTM. Much clearer. On Thu, Feb 13, 2014 at 7:05 AM, <rsc@golang.org> wrote: > PTAL ...
11 years, 4 months ago (2014-02-12 20:09:14 UTC) #4
dvyukov
I will take a look tomorrow
11 years, 4 months ago (2014-02-12 20:17:08 UTC) #5
rsc
On Wed, Feb 12, 2014 at 4:57 PM, <iant@golang.org> wrote: > LGTM > > > ...
11 years, 4 months ago (2014-02-12 22:09:15 UTC) #6
dvyukov
On 2014/02/12 22:09:15, rsc wrote: > On Wed, Feb 12, 2014 at 4:57 PM, <mailto:iant@golang.org> ...
11 years, 4 months ago (2014-02-13 07:09:35 UTC) #7
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=223d1c05e7c2 *** runtime: introduce MSpan.needzero instead of writing to span data This ...
11 years, 4 months ago (2014-02-13 16:10:35 UTC) #8
iant
On Wed, Feb 12, 2014 at 1:57 PM, <iant@golang.org> wrote: > > > https://codereview.appspot.com/57680046/diff/90001/src/pkg/runtime/malloc.h > ...
11 years, 4 months ago (2014-02-13 17:00:03 UTC) #9
gobot
This CL appears to have broken the openbsd-amd64-rootbsd builder.
11 years, 4 months ago (2014-02-13 17:07:40 UTC) #10
rsc
11 years, 4 months ago (2014-02-13 18:32:15 UTC) #11
Message was sent while issue was closed.
https://codereview.appspot.com/57680046/diff/90001/src/pkg/runtime/malloc.h
File src/pkg/runtime/malloc.h (right):

https://codereview.appspot.com/57680046/diff/90001/src/pkg/runtime/malloc.h#n...
src/pkg/runtime/malloc.h:69: // the second word of the object is zero.  The
spans in the
On 2014/02/12 21:57:36, iant wrote:
> Please update comment.

New CL sent, sorry.
Sign in to reply to this message.

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