summaryrefslogtreecommitdiff
path: root/src/cmd/api/goapi.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-04 21:12:31 -0400
committerRuss Cox <rsc@golang.org>2014-09-04 21:12:31 -0400
commitdb58ab96fa4767ca6144678d63203be5381709d6 (patch)
tree734bf2f8992b8992c96a8a56c946acfc33db05f2 /src/cmd/api/goapi.go
parent1a14b5bad8926941023ca310fa3b53c70717b1e2 (diff)
downloadgo-git-db58ab96fa4767ca6144678d63203be5381709d6.tar.gz
runtime: more C to Go conversion adjustments
Mostly NOSPLIT additions. Had to rewrite atomic_arm.c in Go because it calls lock, and lock is too complex. With this CL, I find no Go -> C calls that can split the stack on any system except Solaris and Windows. Solaris and Windows need more work and will be done separately. LGTM=iant, dave R=golang-codereviews, bradfitz, iant, dave CC=dvyukov, golang-codereviews, khr, r https://golang.org/cl/137160043
Diffstat (limited to 'src/cmd/api/goapi.go')
-rw-r--r--src/cmd/api/goapi.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index 6b21a24e36..18c36bb175 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -411,6 +411,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
"); " +
"const (" +
" cb_max = 2000;" +
+ " _CacheLineSize = 64;" +
" _Gidle = 1;" +
" _Grunnable = 2;" +
" _Grunning = 3;" +