summaryrefslogtreecommitdiff
path: root/src/runtime/mgc0.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-16 11:03:11 -0400
committerRuss Cox <rsc@golang.org>2014-09-16 11:03:11 -0400
commitb9600256a044061cd2d410a352bd821bc84e4754 (patch)
tree13209e3524d6198405e9237aedcb6ae7dd6f70f6 /src/runtime/mgc0.go
parentc9afff3fcecc335ae25cef3ec5f4040fb30e2f9a (diff)
downloadgo-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/runtime/mgc0.go')
-rw-r--r--src/runtime/mgc0.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/runtime/mgc0.go b/src/runtime/mgc0.go
index bd5ebab46..0e17599c2 100644
--- a/src/runtime/mgc0.go
+++ b/src/runtime/mgc0.go
@@ -21,15 +21,6 @@ func gc_itab_ptr(ret *interface{}) {
*ret = (*itab)(nil)
}
-// Type used for "conservative" allocations in C code.
-type notype [8]*byte
-
-// Called from C. Returns the Go type used for C allocations w/o type.
-func gc_notype_ptr(ret *interface{}) {
- var x notype
- *ret = x
-}
-
func gc_unixnanotime(now *int64) {
sec, nsec := timenow()
*now = sec*1e9 + int64(nsec)