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

Issue 4958042: code review 4958042: runtime: windows/amd64 callbacks fixed and syscall fixe... (Closed)

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

Description

runtime: windows/amd64 callbacks fixed and syscall fixed to allow using it in callbacks Fixes issue 2178. Patch2: Fixed allocating shadow space for stdcall (must be at least 32 bytes in any case) Patch3: Made allocated chunk smaller. Patch4: Typo Patch5: suppress linktime warning "runtime.callbackasm: nosplit stack overflow" Patch6: added testcase src/pkg/syscall/callback_windows_test.go Patch7: weakly related files moved to http://codereview.appspot.com/4965050 http://codereview.appspot.com/4974041 http://codereview.appspot.com/4965051 Patch8: reflect changes http://codereview.appspot.com/4926042/ Patch9: reflect comments

Patch Set 1 : diff -r 0d64f70fe250 https://go.googlecode.com/hg/ #

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

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

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

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

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

Total comments: 2

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

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

Total comments: 34

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

Total comments: 1

Patch Set 10 : diff -r 688881c38f0d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -101 lines) Patch
M src/pkg/runtime/Makefile View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/syscall_windows_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A src/pkg/runtime/windows/386/callback.c View 1 2 3 4 5 6 1 chunk +107 lines, -0 lines 0 comments Download
A src/pkg/runtime/windows/amd64/callback.c View 1 2 3 4 5 6 1 chunk +104 lines, -0 lines 0 comments Download
M src/pkg/runtime/windows/amd64/sys.s View 1 2 3 4 5 6 7 8 1 chunk +73 lines, -2 lines 0 comments Download
M src/pkg/runtime/windows/thread.c View 1 2 3 4 5 6 7 1 chunk +0 lines, -99 lines 0 comments Download

Messages

Total messages: 23
jp
Here is an implementation of callback functions from windows/amd64 DLL's. The patch is mostly modeled ...
12 years, 8 months ago (2011-08-25 04:17:09 UTC) #1
brainman
On 2011/08/25 04:17:09, jp wrote: > Here is an implementation of callback functions from windows/amd64 ...
12 years, 8 months ago (2011-08-25 04:35:18 UTC) #2
jp
You are right, we did almost the same modifications in pkg\exp\wingui\sys.s But I see that ...
12 years, 8 months ago (2011-08-25 05:05:06 UTC) #3
brainman
On 2011/08/25 05:05:06, jp wrote: > > But I see that your patch did not ...
12 years, 8 months ago (2011-08-25 05:08:38 UTC) #4
jp
Fixed allocating shadow space for stdcall (must be at least 32 bytes in any case)
12 years, 8 months ago (2011-08-25 15:33:35 UTC) #5
jp
Patch3: Made allocated chunk smaller.
12 years, 8 months ago (2011-08-25 16:18:26 UTC) #6
jp
On 2011/08/25 16:18:26, jp wrote: added testcase for windows/386 and windows/amd64
12 years, 8 months ago (2011-08-26 08:22:20 UTC) #7
vcc
I'd like to suggest split this CL into 3 CL, one for fixes doc/progs, one ...
12 years, 8 months ago (2011-08-26 08:44:20 UTC) #8
vcc
http://codereview.appspot.com/4958042/diff/2040/src/pkg/runtime/cgo/amd64.S File src/pkg/runtime/cgo/amd64.S (left): http://codereview.appspot.com/4958042/diff/2040/src/pkg/runtime/cgo/amd64.S#oldcode8 src/pkg/runtime/cgo/amd64.S:8: #if defined(__APPLE__) || defined(_WIN32) mingw-w64 4.5.0 add underscore prefixes ...
12 years, 8 months ago (2011-08-26 08:50:40 UTC) #9
jp
On 2011/08/26 08:44:20, vcc wrote: > one for improve stdcall, one for callback for windows/amd64 ...
12 years, 8 months ago (2011-08-26 08:51:24 UTC) #10
jp
http://codereview.appspot.com/4958042/diff/2040/src/pkg/runtime/cgo/amd64.S File src/pkg/runtime/cgo/amd64.S (left): http://codereview.appspot.com/4958042/diff/2040/src/pkg/runtime/cgo/amd64.S#oldcode8 src/pkg/runtime/cgo/amd64.S:8: #if defined(__APPLE__) || defined(_WIN32) On 2011/08/26 08:50:41, vcc wrote: ...
12 years, 8 months ago (2011-08-26 09:00:14 UTC) #11
jp
On 2011/08/26 08:44:20, vcc wrote: > I'd like to suggest split this CL into 3 ...
12 years, 8 months ago (2011-08-26 10:06:45 UTC) #12
jp
On 2011/08/26 10:06:45, jp wrote: > On 2011/08/26 08:44:20, vcc wrote: > > I'd like ...
12 years, 8 months ago (2011-08-27 15:50:21 UTC) #13
jp
Reflected changes http://codereview.appspot.com/4926042/ Patch became simples for 4926042 solved syscall reenterability issue, so I just ...
12 years, 8 months ago (2011-08-27 16:44:19 UTC) #14
brainman
Thank you for fixing this. http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile File src/pkg/Makefile (left): http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile#oldcode214 src/pkg/Makefile:214: syscall\ I am using ...
12 years, 8 months ago (2011-08-28 23:51:46 UTC) #15
jp
http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile File src/pkg/Makefile (left): http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile#oldcode214 src/pkg/Makefile:214: syscall\ On 2011/08/28 23:51:46, brainman wrote: > I am ...
12 years, 8 months ago (2011-08-29 00:45:07 UTC) #16
brainman
http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile File src/pkg/Makefile (left): http://codereview.appspot.com/4958042/diff/9011/src/pkg/Makefile#oldcode214 src/pkg/Makefile:214: syscall\ On 2011/08/29 00:45:07, jp wrote: > > If ...
12 years, 8 months ago (2011-08-29 01:48:37 UTC) #17
jp
http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/amd64/sys.s File src/pkg/runtime/windows/amd64/sys.s (right): http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/amd64/sys.s#newcode143 src/pkg/runtime/windows/amd64/sys.s:143: MOVQ DI, 56(SP) This workaround is for another warning. ...
12 years, 8 months ago (2011-08-29 02:07:06 UTC) #18
brainman
http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/thread.c File src/pkg/runtime/windows/thread.c (left): http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/thread.c#oldcode323 src/pkg/runtime/windows/thread.c:323: // Will keep all callbacks in a linked list, ...
12 years, 8 months ago (2011-08-29 02:17:57 UTC) #19
jp
http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/amd64/sys.s File src/pkg/runtime/windows/amd64/sys.s (right): http://codereview.appspot.com/4958042/diff/9011/src/pkg/runtime/windows/amd64/sys.s#newcode143 src/pkg/runtime/windows/amd64/sys.s:143: MOVQ DI, 56(SP) Asked, lets wait which one of ...
12 years, 8 months ago (2011-08-29 04:08:03 UTC) #20
jp
Hello golang-dev@googlegroups.com, alex.brainman@gmail.com, vcc.163@gmail.com (cc: golang-dev@googlegroups.com, hectorchu@gmail.com), I'd like you to review this change to ...
12 years, 8 months ago (2011-08-30 00:15:15 UTC) #21
brainman
It LGTM. One small change and I will submit. http://codereview.appspot.com/4958042/diff/8038/src/pkg/runtime/callback_windows_test.go File src/pkg/runtime/callback_windows_test.go (right): http://codereview.appspot.com/4958042/diff/8038/src/pkg/runtime/callback_windows_test.go#newcode5 src/pkg/runtime/callback_windows_test.go:5: ...
12 years, 8 months ago (2011-08-30 06:19:13 UTC) #22
brainman
12 years, 8 months ago (2011-08-30 12:02:13 UTC) #23
*** Submitted as http://code.google.com/p/go/source/detail?r=bb1fee6d9f0f ***

runtime: windows/amd64 callbacks fixed and syscall fixed to allow using it in
callbacks
Fixes issue 2178.
Patch2: Fixed allocating shadow space for stdcall (must be at least 32 bytes in
any case)
Patch3: Made allocated chunk smaller.
Patch4: Typo
Patch5: suppress linktime warning "runtime.callbackasm: nosplit stack overflow"
Patch6: added testcase src/pkg/syscall/callback_windows_test.go
Patch7: weakly related files moved to http://codereview.appspot.com/4965050
http://codereview.appspot.com/4974041 http://codereview.appspot.com/4965051
Patch8: reflect changes http://codereview.appspot.com/4926042/
Patch9: reflect comments

R=golang-dev, alex.brainman, vcc.163
CC=golang-dev, hectorchu
http://codereview.appspot.com/4958042

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