]> Cypherpunks repositories - gostls13.git/commit
runtime: remove pointless harvestwbufs
authorAustin Clements <austin@google.com>
Tue, 17 Mar 2015 19:28:57 +0000 (15:28 -0400)
committerAustin Clements <austin@google.com>
Thu, 19 Mar 2015 15:55:00 +0000 (15:55 +0000)
commitd21cef1f8f7b09bac11642a705078675e8e59164
tree3c2a78759d11d0665f2a8ed344d90421fae21636
parenta681c3029dbc258cb066aafd2325490a20362487
runtime: remove pointless harvestwbufs

Currently we harvestwbufs the moment we enter the mark phase, even
before starting the world again. Since cached wbufs are only filled
when we're in mark or mark termination, they should all be empty at
this point, making the harvest pointless. Remove the harvest.

We should, but do not currently harvest at the end of the mark phase
when we're running out of work to do.

Change-Id: I5f4ba874f14dd915b8dfbc4ee5bb526eecc2c0b4
Reviewed-on: https://go-review.googlesource.com/7669
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go