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

Issue 95460046: code review 95460046: syscall: fix stack frame sizes in assembly (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rsc
Modified:
10 years, 11 months ago
Reviewers:
aram, r, dave
CC:
golang-codereviews, r, bradfitz
Visibility:
Public.

Description

syscall: fix stack frame sizes in assembly for GOOS in darwin freebsd linux nacl netbsd openbsd plan9 solaris windows do for GOARCH in 386 amd64 amd64p32 arm do go vet done done These are all real mistakes being corrected, but none of them should be able to cause problems today due to the NOSPLIT on the functions. However, vet has also identified a few important problems. I'm sending this CL to get rid of the trivial 'go vet' results before attacking the real ones.

Patch Set 1 #

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

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -63 lines) Patch
M src/pkg/syscall/asm_darwin_386.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_darwin_amd64.s View 1 5 chunks +7 lines, -4 lines 0 comments Download
M src/pkg/syscall/asm_freebsd_386.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_freebsd_amd64.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_linux_386.s View 1 7 chunks +9 lines, -6 lines 0 comments Download
M src/pkg/syscall/asm_linux_amd64.s View 1 5 chunks +7 lines, -4 lines 0 comments Download
M src/pkg/syscall/asm_nacl_386.s View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/syscall/asm_nacl_amd64p32.s View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/syscall/asm_netbsd_386.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_netbsd_amd64.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_openbsd_386.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_openbsd_amd64.s View 1 6 chunks +8 lines, -5 lines 0 comments Download
M src/pkg/syscall/asm_plan9_386.s View 1 4 chunks +6 lines, -3 lines 0 comments Download
M src/pkg/syscall/asm_plan9_amd64.s View 1 5 chunks +7 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_linux_386.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_plan9.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
rsc
Hello golang-codereviews@googlegroups.com (cc: bradfitz, r), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-05-15 20:31:08 UTC) #1
r
LGTM https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s File src/pkg/syscall/asm_linux_amd64.s (right): https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s#newcode113 src/pkg/syscall/asm_linux_amd64.s:113: TEXT ·Gettimeofday(SB),NOSPLIT,$0-24 why isn't this 16 and the ...
10 years, 11 months ago (2014-05-15 20:41:29 UTC) #2
bradfitz
https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s File src/pkg/syscall/asm_linux_amd64.s (right): https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s#newcode113 src/pkg/syscall/asm_linux_amd64.s:113: TEXT ·Gettimeofday(SB),NOSPLIT,$0-24 On 2014/05/15 20:41:29, r wrote: > why ...
10 years, 11 months ago (2014-05-15 20:43:49 UTC) #3
rsc
https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s File src/pkg/syscall/asm_linux_amd64.s (right): https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s#newcode113 src/pkg/syscall/asm_linux_amd64.s:113: TEXT ·Gettimeofday(SB),NOSPLIT,$0-24 On 2014/05/15 20:41:29, r wrote: > why ...
10 years, 11 months ago (2014-05-15 20:45:11 UTC) #4
r
https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s File src/pkg/syscall/asm_linux_amd64.s (right): https://codereview.appspot.com/95460046/diff/60001/src/pkg/syscall/asm_linux_amd64.s#newcode113 src/pkg/syscall/asm_linux_amd64.s:113: TEXT ·Gettimeofday(SB),NOSPLIT,$0-24 On 2014/05/15 20:43:49, bradfitz wrote: > On ...
10 years, 11 months ago (2014-05-15 20:45:47 UTC) #5
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=b02fede60a4c *** syscall: fix stack frame sizes in assembly for GOOS in ...
10 years, 11 months ago (2014-05-15 20:47:55 UTC) #6
dave_cheney.net
> This is a bug to be fixed in the next CL. The Go function ...
10 years, 11 months ago (2014-05-16 02:16:21 UTC) #7
rsc
On Thu, May 15, 2014 at 10:16 PM, Dave Cheney <dave@cheney.net> wrote: > > This ...
10 years, 11 months ago (2014-05-16 03:46:36 UTC) #8
dave_cheney.net
> On 16 May 2014, at 13:46, Russ Cox <rsc@golang.org> wrote: > >> On Thu, ...
10 years, 11 months ago (2014-05-16 04:06:49 UTC) #9
aram
10 years, 11 months ago (2014-05-16 10:03:58 UTC) #10
Message was sent while issue was closed.
Can't remember the exact details, and my hg foo is weak today, but
the problem was with functions that failed and err.Error() blew up.
When I realised the problem, I fixed all the Solaris code, or at
least I hope I did. In retrospect, I should have fixed all the code,
not only the Solaris code, I appologise for not being a good citized.

If you'll forgive me for the above, I'm sure you will not forgive
me for what I am about to say next. During the port, I have identified
at least a dozen "theoretical" problems with the other ports. Most
of the problems were of the similar nature to this one. I didn't
file bugs for most of them, instead I wrote them on a piece of
paper.

At FOSDEM, I had the piece of paper with me. I wanted to read from
it to exemplify how bad it is not to file bugs; I wanted to give
myself as a negative example and tell people to do better. In an
ironic twist of fate, I forgot the paper in my hotel room in Brussels.

I can't remember what was written on it.
Sign in to reply to this message.

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