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

Issue 11266043: code review 11266043: runtime: switch to os stack in windows osyield and usleep (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by brainman
Modified:
10 years, 9 months ago
Reviewers:
rsc, dvyukov
CC:
golang-dev, rsc
Visibility:
Public.

Description

runtime: switch to os stack in windows osyield and usleep Fixes issue 5831

Patch Set 1 #

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

Patch Set 3 : diff -r 90456b366cf5 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 4 : diff -r 90456b366cf5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -52 lines) Patch
M src/pkg/runtime/os_windows.c View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_windows_386.s View 1 2 3 2 chunks +31 lines, -28 lines 0 comments Download
M src/pkg/runtime/sys_windows_amd64.s View 1 2 3 1 chunk +34 lines, -24 lines 0 comments Download

Messages

Total messages: 6
brainman
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 9 months ago (2013-07-16 01:23:33 UTC) #1
rsc
LGTM https://codereview.appspot.com/11266043/diff/6001/src/pkg/runtime/os_windows.c File src/pkg/runtime/os_windows.c (right): https://codereview.appspot.com/11266043/diff/6001/src/pkg/runtime/os_windows.c#newcode282 src/pkg/runtime/os_windows.c:282: runtime·osyield() s/()/(void)/ https://codereview.appspot.com/11266043/diff/6001/src/pkg/runtime/sys_windows_386.s File src/pkg/runtime/sys_windows_386.s (right): https://codereview.appspot.com/11266043/diff/6001/src/pkg/runtime/sys_windows_386.s#newcode340 src/pkg/runtime/sys_windows_386.s:340: ...
10 years, 9 months ago (2013-07-16 01:45:39 UTC) #2
brainman
*** Submitted as https://code.google.com/p/go/source/detail?r=40754028598e *** runtime: switch to os stack in windows osyield and usleep ...
10 years, 9 months ago (2013-07-16 02:36:13 UTC) #3
dvyukov
I afraid many more functions need this: https://code.google.com/p/go/issues/detail?id=5831#c10
10 years, 9 months ago (2013-07-16 05:39:59 UTC) #4
brainman
On 2013/07/16 05:39:59, dvyukov wrote: > I afraid many more functions need this: Every other ...
10 years, 9 months ago (2013-07-16 05:55:58 UTC) #5
dvyukov
10 years, 9 months ago (2013-07-16 06:23:45 UTC) #6
Message was sent while issue was closed.
On 2013/07/16 05:55:58, brainman wrote:
> On 2013/07/16 05:39:59, dvyukov wrote:
> > I afraid many more functions need this:
> 
> Every other call to windows dll functions is made via runtime.stdcall.
> runtime.stdcall does switches stacks. So I think we are safe.
> 
> We don't use runtime.stdcall for osyield and usleep, because runtime.stdcall
> uses quite a bit of stack when it runs. osyield and usleep are called by few
> stack-no-split functions, so the stack space is at premium here. Now, after
this
> CL, even osyield and usleep are covered.
> 
> Perhaps I am wrong. You tell me.

Ah, OK, I did not know that we switch stack for all other syscalls.
Sign in to reply to this message.

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