aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-08 18:07:33 -0400
committerRuss Cox <rsc@golang.org>2014-09-08 18:07:33 -0400
commit5103500d130b3b74c0c3a75ac8dab5285111ffbe (patch)
treea72f57f30406589b020955bfe2460f5f82067152 /src
parentec96795ba20209263a0bbb17a073a9c028e74437 (diff)
downloadgo-5103500d130b3b74c0c3a75ac8dab5285111ffbe.tar.xz
runtime: mark endcgo go:nosplit
Should help windows/amd64. TBR=khr CC=golang-codereviews https://golang.org/cl/134660043
Diffstat (limited to 'src')
-rw-r--r--src/runtime/cgocall.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go
index 76a533e933..a21474b01f 100644
--- a/src/runtime/cgocall.go
+++ b/src/runtime/cgocall.go
@@ -134,6 +134,7 @@ func cgocall_errno(fn, arg unsafe.Pointer) int32 {
return errno
}
+//go:nosplit
func endcgo(mp *m) {
mp.ncgo--
if mp.ncgo == 0 {