diff options
author | Bill Zissimopoulos <billziss@navimatics.com> | 2018-06-03 17:25:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-06-05 13:50:06 +0000 |
commit | bb0fae603bd19e096e38c3321d95bf114f40dcff (patch) | |
tree | b0c45e56cf68249c65c4cdde293e640dcb5049f4 /src/runtime/syscall_windows_test.go | |
parent | 4a2bec9726eca30cd499695f210fe5e26f949229 (diff) | |
download | go-bb0fae603bd19e096e38c3321d95bf114f40dcff.tar.gz go-bb0fae603bd19e096e38c3321d95bf114f40dcff.zip |
runtime: handle windows callback on non-go thread
Adds an extra M in mstartm0 and accounts for it in checkdead. This allows Windows callbacks created with syscall.NewCallback and syscall.NewCallbackCDecl to be called on a non-Go thread.
Fixes #6751
Change-Id: I57626bc009a6370b9ca0827ab64b14b01dec39d4
GitHub-Last-Rev: d429e3eed923640edab580bdb47fcb81e75dbfe8
GitHub-Pull-Request: golang/go#25575
Reviewed-on: https://go-review.googlesource.com/114802
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/syscall_windows_test.go')
-rw-r--r-- | src/runtime/syscall_windows_test.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/syscall_windows_test.go b/src/runtime/syscall_windows_test.go index 2b057213f2..0f5e13f97e 100644 --- a/src/runtime/syscall_windows_test.go +++ b/src/runtime/syscall_windows_test.go @@ -251,8 +251,6 @@ func TestBlockingCallback(t *testing.T) { } func TestCallbackInAnotherThread(t *testing.T) { - t.Skip("Skipping failing test (see golang.org/issue/6751 for details)") - d := GetDLL(t, "kernel32.dll") f := func(p uintptr) uintptr { |