]> Cypherpunks repositories - gostls13.git/commit
runtime: really pass return value to Windows in externalthreadhandler
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 14 Apr 2015 00:48:05 +0000 (10:48 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Wed, 15 Apr 2015 05:03:42 +0000 (05:03 +0000)
commit9402e49450d57eb608f03980e7541602a346e5ae
tree2a0173a7ca8564652e2250bfd88737a8e4bfdd01
parent7e7d55f888736d8dd8881852be8056cd43739291
runtime: really pass return value to Windows in externalthreadhandler

When Windows calls externalthreadhandler it expects to receive
return value in AX. We don't set AX anywhere. Change that.
Store ctrlhandler1 and profileloop1 return values into AX before
returning from externalthreadhandler.

Fixes #10215.

Change-Id: Ied04542cc3ebe7d4a26660e970f9f78098143591
Reviewed-on: https://go-review.googlesource.com/8901
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/signal/signal_windows_test.go
src/runtime/os1_windows.go
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s