]> Cypherpunks repositories - gostls13.git/commit
runtime: combine gcWorkProducer into gcWork
authorAustin Clements <austin@google.com>
Thu, 12 Mar 2015 17:09:30 +0000 (13:09 -0400)
committerAustin Clements <austin@google.com>
Thu, 19 Mar 2015 15:55:21 +0000 (15:55 +0000)
commitcadd4f81a8a637bda2ea22176e11604ceea14a0d
treea904d061cec0e44c9d6972957fa1196ddd1c5de0
parent77fcf36a5ece3eb2a3c2a427d0b63f417ae7c8c8
runtime: combine gcWorkProducer into gcWork

The distinction between gcWorkProducer and gcWork (producer and
consumer) is not serving us as originally intended, so merge these
into just gcWork.

The original intent was to replace the currentwbuf cache with a
gcWorkProducer. However, with gchelpwork (aka mutator assists),
mutators can both produce and consume work, so it will make more sense
to cache a whole gcWork.

Change-Id: I6e633e96db7cb23a64fbadbfc4607e3ad32bcfb3
Reviewed-on: https://go-review.googlesource.com/7733
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgcmark.go
src/runtime/mgcwork.go