]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: remove untyped allocation of ParFor
authorRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 15:03:11 +0000 (11:03 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 15:03:11 +0000 (11:03 -0400)
commitfc469314420f553906a283656ae39bafcf5af1b0
treedaaf31ad615c5c56cd9ac1f961e48d2d539551a4
parentf95beae61d21898710d7d405ac39bc7b3b205c79
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://golang.org/cl/139610043
12 files changed:
misc/cgo/test/callback.go
misc/cgo/test/callback_c_gc.c
misc/cgo/test/callback_c_gccgo.c
misc/cgo/test/cgo_test.go
misc/cgo/test/exports.go
src/cmd/api/goapi.go
src/runtime/cgocallback.go
src/runtime/malloc.c
src/runtime/malloc.h
src/runtime/mgc0.go
src/runtime/parfor.c
src/runtime/runtime.go