]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate parfor ctx field
authorAustin Clements <austin@google.com>
Wed, 28 Jan 2015 20:49:26 +0000 (15:49 -0500)
committerAustin Clements <austin@google.com>
Thu, 29 Jan 2015 17:38:16 +0000 (17:38 +0000)
commitebbdf2a14cfb2c694d7ecc815d0adc36c344362a
tree6160bda17cf8ff48b41b002607b507c228954d2d
parent8e2bb7bb4ab8c15204a995e976ce7d023d0e37bf
runtime: eliminate parfor ctx field

Prior to the conversion of the runtime to Go, this void* was
necessary to get closure information in to C callbacks.  There
are no more C callbacks and parfor is perfectly capable of
invoking a Go closure now, so eliminate ctx and all of its
unsafe-ness.  (Plus, the runtime currently doesn't use ctx for
anything.)

Change-Id: I39fc53b7dd3d7f660710abc76b0d831bfc6296d8
Reviewed-on: https://go-review.googlesource.com/3395
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/export_test.go
src/runtime/mgc.go
src/runtime/parfor.go
src/runtime/parfor_test.go