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

Issue 1943049: code review 1943049: libmach: implement register fetch for 32-bit x86 kernel (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by rsc
Modified:
14 years, 11 months ago
Reviewers:
CC:
r, etherealmachine_gmail.com, golang-dev
Visibility:
Public.

Description

libmach: implement register fetch for 32-bit x86 kernel Also use memmove to silence some gcc warnings. Fixes issue 1036.

Patch Set 1 #

Patch Set 2 : code review 1943049: libmach: implement register fetch for 32-bit x86 kernel #

Patch Set 3 : code review 1943049: libmach: implement register fetch for 32-bit x86 kernel #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -9 lines) Patch
M src/libmach/linux.c View 4 chunks +31 lines, -9 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-08-20 13:39:55 UTC) #1
EtherealMachine
On 2010/08/20 13:39:55, rsc wrote: > Hello r (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
14 years, 11 months ago (2010-08-20 15:47:15 UTC) #2
r
LGTM
14 years, 11 months ago (2010-08-20 21:35:43 UTC) #3
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=7824ecf15ba9 *** libmach: implement register fetch for 32-bit x86 kernel Also use ...
14 years, 11 months ago (2010-08-21 00:49:57 UTC) #4
iant2
rsc@golang.org writes: > Also use memmove to silence some gcc warnings. Why not memcpy? Ian
14 years, 11 months ago (2010-08-21 00:53:34 UTC) #5
r
Why not memmove, which is never incorrect? -rob
14 years, 11 months ago (2010-08-21 00:55:08 UTC) #6
iant2
14 years, 11 months ago (2010-08-21 00:57:57 UTC) #7
"Rob 'Commander' Pike" <r@golang.org> writes:

> Why not memmove, which is never incorrect?

Just efficiency.  They are both implemented directly by the compiler,
and the compiler can do better with memcpy in cases where it can not
prove that the addresses do not overlap.

memmove is fine.

Ian
Sign in to reply to this message.

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