]> Cypherpunks repositories - gostls13.git/commit
runtime: cache workbufs on Ms and add consistency checks
authorRick Hudson <rlh@golang.org>
Fri, 6 Feb 2015 00:58:18 +0000 (19:58 -0500)
committerRick Hudson <rlh@golang.org>
Wed, 11 Feb 2015 16:27:17 +0000 (16:27 +0000)
commita15818fed3032d43e57c395c3fe8b46b37a5f1ea
tree9eb8f7acbbc48a572184a3d7b83cdd55e2eef047
parent59495e8dfda0cfc1fa527337b2fed8a8099137dc
runtime: cache workbufs on Ms and add consistency checks

Add local workbufs to the m struct in order to reduce contention.
Add consistency checks for workbuf ownership.
Chain workbufs through call change to avoid swapping them
to and from the m struct.
Adjust the size of the workbuf so that the mutators can
more frequently pass modifications to the GC thus shifting
some work from the STW mark termination phase to the concurrent
mark phase.

Change-Id: I557b53af34ad9972265e0ed9f5996e52d548563d
Reviewed-on: https://go-review.googlesource.com/3972
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc.go
src/runtime/mgc.go
src/runtime/runtime2.go