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

Issue 4961045: code review 4961045: windows/386: clean stack after syscall (it is necessary... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by jp
Modified:
14 years, 3 months ago
Reviewers:
CC:
golang-dev, bradfitz, brainman, hector, rsc
Visibility:
Public.

Description

windows/386: clean stack after syscall (it is necessary after call cdecl functions and does not have an effect after stdcall) Result of discussion here: http://groups.google.com/group/golang-nuts/browse_thread/thread/357c806cbb57ca62

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

Total comments: 2

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

Total comments: 1

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

Total comments: 3

Patch Set 4 : diff -r 71f597a8ca9b https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 5e1053337103 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 6 : diff -r db63f3a1f992 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r db63f3a1f992 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r db63f3a1f992 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -1 line) Patch
A src/pkg/runtime/syscall_windows_test.go View 1 2 3 4 5 6 7 1 chunk +61 lines, -0 lines 0 comments Download
M src/pkg/runtime/windows/386/sys.s View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 21
jp
windows/386: clean stack after syscall (it is necessary after call cdecl functions and does not ...
14 years, 3 months ago (2011-08-26 05:57:43 UTC) #1
bradfitz
Why not add that test to a *_test.go file somewhere? func TestCDecl(t *testing.T) { .... ...
14 years, 3 months ago (2011-08-26 06:00:49 UTC) #2
brainman
Why would we need to use user32.dll wsprintfA? Alex http://codereview.appspot.com/4961045/diff/2001/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/2001/src/pkg/runtime/windows/386/sys.s#newcode31 src/pkg/runtime/windows/386/sys.s:31: ...
14 years, 3 months ago (2011-08-26 06:30:34 UTC) #3
jp
On 2011/08/26 06:30:34, brainman wrote: > Why would we need to use user32.dll wsprintfA? Only ...
14 years, 3 months ago (2011-08-26 06:47:53 UTC) #4
jp
http://codereview.appspot.com/4961045/diff/2001/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/2001/src/pkg/runtime/windows/386/sys.s#newcode31 src/pkg/runtime/windows/386/sys.s:31: // DI SI BP BX are preserved On 2011/08/26 ...
14 years, 3 months ago (2011-08-26 06:58:24 UTC) #5
jp
On 2011/08/26 06:00:49, bradfitz wrote: > Why not add that test to a *_test.go file ...
14 years, 3 months ago (2011-08-26 06:59:38 UTC) #6
bradfitz
http://codereview.appspot.com/4961045/diff/16007/src/pkg/syscall/syscall_test.go File src/pkg/syscall/syscall_test.go (right): http://codereview.appspot.com/4961045/diff/16007/src/pkg/syscall/syscall_test.go#newcode21 src/pkg/syscall/syscall_test.go:21: h, e := syscall.LoadLibrary("user32.dll") This won't work on Linux ...
14 years, 3 months ago (2011-08-26 08:25:53 UTC) #7
jp
On 2011/08/26 08:25:53, bradfitz wrote: > http://codereview.appspot.com/4961045/diff/16007/src/pkg/syscall/syscall_test.go > File src/pkg/syscall/syscall_test.go (right): > > http://codereview.appspot.com/4961045/diff/16007/src/pkg/syscall/syscall_test.go#newcode21 > ...
14 years, 3 months ago (2011-08-26 08:45:13 UTC) #8
hector
http://codereview.appspot.com/4961045/diff/7/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/7/src/pkg/runtime/windows/386/sys.s#newcode28 src/pkg/runtime/windows/386/sys.s:28: BYTE $0xe2; BYTE $0xfa; // LOOP -1(PC) Why does ...
14 years, 3 months ago (2011-08-26 11:23:15 UTC) #9
jp
http://codereview.appspot.com/4961045/diff/7/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/7/src/pkg/runtime/windows/386/sys.s#newcode28 src/pkg/runtime/windows/386/sys.s:28: BYTE $0xe2; BYTE $0xfa; // LOOP -1(PC) > Also ...
14 years, 3 months ago (2011-08-26 16:54:54 UTC) #10
rsc
This CL is attempting a bug fix and a cleanup at the same time. That's ...
14 years, 3 months ago (2011-08-26 17:08:47 UTC) #11
jp
On 2011/08/26 17:08:47, rsc wrote: > This CL is attempting a bug fix and a ...
14 years, 3 months ago (2011-08-26 17:36:44 UTC) #12
jp
Reflected changes http://codereview.appspot.com/4926042/
14 years, 3 months ago (2011-08-27 16:46:02 UTC) #13
brainman
http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s#newcode26 src/pkg/runtime/windows/386/sys.s:26: // DI SI BP BX are preserved, SP is ...
14 years, 3 months ago (2011-08-29 00:23:40 UTC) #14
jp
http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s#newcode26 src/pkg/runtime/windows/386/sys.s:26: // DI SI BP BX are preserved, SP is ...
14 years, 3 months ago (2011-08-29 01:06:34 UTC) #15
brainman
http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s File src/pkg/runtime/windows/386/sys.s (right): http://codereview.appspot.com/4961045/diff/2011/src/pkg/runtime/windows/386/sys.s#newcode26 src/pkg/runtime/windows/386/sys.s:26: // DI SI BP BX are preserved, SP is ...
14 years, 3 months ago (2011-08-29 01:55:22 UTC) #16
jp
Hello golang-dev@googlegroups.com, bradfitz@golang.org, alex.brainman@gmail.com, hectorchu@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change ...
14 years, 3 months ago (2011-08-30 00:14:58 UTC) #17
brainman
On 2011/08/30 00:14:58, jp wrote: > > I'd like you to review this change to ...
14 years, 3 months ago (2011-08-30 00:57:12 UTC) #18
jp
seems %I64d was introduced after win2k PTAL On 2011/08/30 00:57:12, brainman wrote: > On 2011/08/30 ...
14 years, 3 months ago (2011-08-30 01:18:39 UTC) #19
brainman
LGTM
14 years, 3 months ago (2011-08-30 04:43:38 UTC) #20
brainman
14 years, 3 months ago (2011-08-30 04:44:04 UTC) #21
*** Submitted as http://code.google.com/p/go/source/detail?r=688881c38f0d ***

windows/386: clean stack after syscall (it is necessary after call cdecl
functions and does not have an effect after stdcall)

Result of discussion here:
http://groups.google.com/group/golang-nuts/browse_thread/thread/357c806cbb57ca62

R=golang-dev, bradfitz, alex.brainman, hectorchu, rsc
CC=golang-dev
http://codereview.appspot.com/4961045

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

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