diff options
author | Russ Cox <rsc@golang.org> | 2014-09-16 11:03:11 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-16 11:03:11 -0400 |
commit | b9600256a044061cd2d410a352bd821bc84e4754 (patch) | |
tree | 13209e3524d6198405e9237aedcb6ae7dd6f70f6 /src/cmd/api | |
parent | c9afff3fcecc335ae25cef3ec5f4040fb30e2f9a (diff) | |
download | go-b9600256a044061cd2d410a352bd821bc84e4754.tar.gz |
runtime: remove untyped allocation of ParFor
Now it's two allocations. I don't see much downside to that,
since the two pieces were in different cache lines anyway.
Rename 'conservative' to 'cgo_conservative_type' and make
clear that _cgo_allocate is the only allowed user.
This depends on CL 141490043, which removes the other
use of conservative (in defer).
LGTM=dvyukov, iant
R=khr, dvyukov, iant
CC=golang-codereviews, rlh
https://codereview.appspot.com/139610043
Diffstat (limited to 'src/cmd/api')
-rw-r--r-- | src/cmd/api/goapi.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go index 78b7d6edf..5a8c87603 100644 --- a/src/cmd/api/goapi.go +++ b/src/cmd/api/goapi.go @@ -404,6 +404,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) { " mutex struct{};" + " note struct{};" + " p struct{};" + + " parfor struct{};" + " slicetype struct{};" + " stkframe struct{};" + " sudog struct{};" + |