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

Issue 4813043: code review 4813043: runtime: fix memclr and impove memcopy.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by zhai
Modified:
12 years, 9 months ago
Reviewers:
rsc
CC:
golang-dev, r, r2, dsymonds, rsc
Visibility:
Public.

Description

runtime: fix memclr and impove memcopy.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -12 lines) Patch
M src/pkg/runtime/386/asm.s View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/runtime/amd64/asm.s View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/runtime/runtime.c View 1 1 chunk +3 lines, -10 lines 0 comments Download

Messages

Total messages: 13
zhai
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-21 12:26:18 UTC) #1
r
Have you seen a bug that this fixes?
12 years, 9 months ago (2011-07-22 05:44:53 UTC) #2
zhai
On Fri, Jul 22, 2011 at 1:44 PM, <r@golang.org> wrote: > Have you seen a ...
12 years, 9 months ago (2011-07-22 08:20:41 UTC) #3
r2
On 22/07/2011, at 6:20 PM, zhai wrote: > On Fri, Jul 22, 2011 at 1:44 ...
12 years, 9 months ago (2011-07-22 09:49:24 UTC) #4
r2
Let me put it another way. Do you have a test that fails before this ...
12 years, 9 months ago (2011-07-22 10:13:25 UTC) #5
dsymonds
On Fri, Jul 22, 2011 at 6:20 PM, zhai <qyzhai@gmail.com> wrote: > Please look at ...
12 years, 9 months ago (2011-07-22 14:20:01 UTC) #6
zhai
On Fri, Jul 22, 2011 at 6:13 PM, Rob 'Commander' Pike <r@google.com> wrote: > Let ...
12 years, 9 months ago (2011-07-22 16:57:17 UTC) #7
zhai
> > If you're not sure, why do you want to fix it? > > ...
12 years, 9 months ago (2011-07-22 17:50:26 UTC) #8
rsc
the existing code overclears. it clears up to the next word boundary. but it is ...
12 years, 9 months ago (2011-07-23 00:57:58 UTC) #9
zhai
> > so it also fixes memclr > not to overclear, or else the switch ...
12 years, 9 months ago (2011-07-23 03:50:17 UTC) #10
dsymonds
Oh, duh. Somehow I completely missed the ADDQ $7, CX Yes, the existing one does ...
12 years, 9 months ago (2011-07-23 03:52:36 UTC) #11
rsc
LGTM Don't seem to be any more objections, so submitting...
12 years, 9 months ago (2011-07-23 19:45:01 UTC) #12
rsc
12 years, 9 months ago (2011-07-23 19:47:04 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=79cb8647dd5a ***

runtime: replace byte-at-a-time zeroing loop with memclr

R=golang-dev, r, r, dsymonds, rsc
CC=golang-dev
http://codereview.appspot.com/4813043

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