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

Issue 4058046: code review 4058046: windows: multiple improvements and cleanups (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by hector
Modified:
13 years, 2 months ago
Reviewers:
CC:
rsc, brainman, mattn, rog, golang-dev
Visibility:
Public.

Description

windows: multiple improvements and cleanups The callback mechanism has been made more flexible. Eliminated one round of argument copying in Syscall. Faster Get/SetLastError implemented. Added gettime for gc perf profiling.

Patch Set 1 #

Patch Set 2 : code review 4058046: windows: multiple improvements and cleanups #

Total comments: 9

Patch Set 3 : code review 4058046: windows: multiple improvements and cleanups #

Total comments: 2

Patch Set 4 : code review 4058046: windows: multiple improvements and cleanups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -420 lines) Patch
M src/pkg/exp/wingui/gui.go View 2 chunks +3 lines, -8 lines 0 comments Download
M src/pkg/exp/wingui/zwinapi.go View 1 10 chunks +16 lines, -16 lines 0 comments Download
M src/pkg/runtime/cgocall.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/cgocall.c View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M src/pkg/runtime/runtime.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/windows/386/signal.c View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/windows/386/sys.s View 7 chunks +48 lines, -52 lines 0 comments Download
M src/pkg/runtime/windows/mem.c View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M src/pkg/runtime/windows/os.h View 1 2 1 chunk +8 lines, -24 lines 0 comments Download
M src/pkg/runtime/windows/syscall.goc View 1 2 1 chunk +42 lines, -90 lines 0 comments Download
M src/pkg/runtime/windows/thread.c View 1 2 3 5 chunks +91 lines, -96 lines 0 comments Download
M src/pkg/syscall/mksyscall_windows.sh View 1 5 chunks +14 lines, -13 lines 0 comments Download
M src/pkg/syscall/syscall.go View 1 chunk +0 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_unix.go View 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 chunks +11 lines, -24 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 66 chunks +75 lines, -75 lines 0 comments Download

Messages

Total messages: 16
hector
Hello rsc, brainman (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 2 months ago (2011-01-30 16:13:28 UTC) #1
rsc
Sorry, but variadic Syscall is a no-go. Calling a variadic function makes a slice of ...
13 years, 2 months ago (2011-01-30 17:19:21 UTC) #2
hector
PTAL Reinstated the Syscall<n> variants but added to each a parameter specifying how many meaningful ...
13 years, 2 months ago (2011-01-30 20:03:19 UTC) #3
rsc
looks fine to me. leaving for alex.
13 years, 2 months ago (2011-01-30 22:04:10 UTC) #4
mattn
LGTM but it's drastic for me. On 2011/01/30 22:04:10, rsc wrote: > looks fine to ...
13 years, 2 months ago (2011-01-31 00:33:52 UTC) #5
brainman
Thanks for fixing all that. I like your new NewCallback function. Too many things are ...
13 years, 2 months ago (2011-01-31 11:38:02 UTC) #6
rsc
http://codereview.appspot.com/4058046/diff/11019/src/pkg/runtime/cgocall.c File src/pkg/runtime/cgocall.c (right): http://codereview.appspot.com/4058046/diff/11019/src/pkg/runtime/cgocall.c#newcode57 src/pkg/runtime/cgocall.c:57: #pragma textflag 7 I don't think this is right. ...
13 years, 2 months ago (2011-01-31 17:46:33 UTC) #7
hector
PTAL http://codereview.appspot.com/4058046/diff/11019/src/pkg/runtime/cgocall.c File src/pkg/runtime/cgocall.c (right): http://codereview.appspot.com/4058046/diff/11019/src/pkg/runtime/cgocall.c#newcode57 src/pkg/runtime/cgocall.c:57: #pragma textflag 7 Good point. I had blindly ...
13 years, 2 months ago (2011-01-31 22:15:09 UTC) #8
brainman
On 2011/01/31 17:46:33, rsc wrote: > ... they > are called in contexts where the ...
13 years, 2 months ago (2011-01-31 23:52:31 UTC) #9
brainman
LGTM. But I'll wait for Russ to OK again.
13 years, 2 months ago (2011-02-01 02:23:48 UTC) #10
rsc
looks good; please make the small changes below and I will submit. http://codereview.appspot.com/4058046/diff/7018/src/pkg/runtime/windows/mem.c File src/pkg/runtime/windows/mem.c ...
13 years, 2 months ago (2011-02-01 13:27:07 UTC) #11
rsc
>> are called in contexts where the stack boundaries are not >> correct (should not ...
13 years, 2 months ago (2011-02-01 13:27:28 UTC) #12
rog
On 1 February 2011 13:27, Russ Cox <rsc@golang.org> wrote: >> runtime.cgocallback is not called from ...
13 years, 2 months ago (2011-02-01 13:47:31 UTC) #13
hector
PTAL
13 years, 2 months ago (2011-02-01 15:59:44 UTC) #14
rsc
LGTM
13 years, 2 months ago (2011-02-01 16:28:58 UTC) #15
rsc
13 years, 2 months ago (2011-02-01 16:49:28 UTC) #16
*** Submitted as 1fef4a79089a ***

windows: multiple improvements and cleanups

The callback mechanism has been made more flexible.
Eliminated one round of argument copying in Syscall.
Faster Get/SetLastError implemented.
Added gettime for gc perf profiling.

R=rsc, brainman, mattn, rog
CC=golang-dev
http://codereview.appspot.com/4058046

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