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

Issue 41170044: code review 41170044: runtime: zero 2-word memory blocks in-place (Closed)

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

Description

runtime: zero 2-word memory blocks in-place Currently for 2-word blocks we set the flag to clear the flag. Makes no sense. In particular on 32-bits we call memclr always.

Patch Set 1 #

Patch Set 2 : diff -r 0d4f83bb938b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 0d4f83bb938b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 9fd412c6b156 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 4

Patch Set 5 : diff -r 1716d4e05d1a https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r 1716d4e05d1a https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r ae7c26f57619 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M src/pkg/runtime/malloc.goc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 7
dvyukov
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 3 months ago (2013-12-31 09:49:20 UTC) #1
dave_cheney.net
Thanks Dmitry. Do you have any benchmark data on 1 word vs 2 words ? ...
11 years, 3 months ago (2013-12-31 10:34:49 UTC) #2
dvyukov
On Tue, Dec 31, 2013 at 2:34 PM, Dave Cheney <dave@cheney.net> wrote: > Thanks Dmitry. ...
11 years, 3 months ago (2013-12-31 10:54:47 UTC) #3
dvyukov
ping
11 years, 3 months ago (2014-01-18 15:42:44 UTC) #4
iant
LGTM https://codereview.appspot.com/41170044/diff/60001/src/pkg/runtime/malloc.goc File src/pkg/runtime/malloc.goc (right): https://codereview.appspot.com/41170044/diff/60001/src/pkg/runtime/malloc.goc#newcode213 src/pkg/runtime/malloc.goc:213: ((uintptr*)v)[1] = 0; // zeroize the second word ...
11 years, 3 months ago (2014-01-19 05:37:49 UTC) #5
dvyukov
https://codereview.appspot.com/41170044/diff/60001/src/pkg/runtime/malloc.goc File src/pkg/runtime/malloc.goc (right): https://codereview.appspot.com/41170044/diff/60001/src/pkg/runtime/malloc.goc#newcode213 src/pkg/runtime/malloc.goc:213: ((uintptr*)v)[1] = 0; // zeroize the second word On ...
11 years, 3 months ago (2014-01-21 06:51:40 UTC) #6
dvyukov
11 years, 3 months ago (2014-01-21 06:55:21 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=74fa541d4af8 ***

runtime: zero 2-word memory blocks in-place
Currently for 2-word blocks we set the flag to clear the flag. Makes no sense.
In particular on 32-bits we call memclr always.

R=golang-codereviews, dave, iant
CC=golang-codereviews, khr, rsc
https://codereview.appspot.com/41170044
Sign in to reply to this message.

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