aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-10-25 13:56:37 -0400
committerAustin Clements <austin@google.com>2016-10-28 18:19:53 +0000
commita475a38a3dcd48541f60e40b1dac3c84ab72d0e5 (patch)
treeac525d4f7fcb24e7f1216ee0b5b3a4dbc7ae9fcd /src/runtime/stack.go
parent20edeabc0fc73c6212769142f80e921c2e07ee08 (diff)
downloadgo-a475a38a3dcd48541f60e40b1dac3c84ab72d0e5.tar.xz
runtime: parallelize STW mcache flushing
Currently all mcaches are flushed in a single STW root job. This takes about 5 µs per P, but since it's done sequentially it adds about 5*GOMAXPROCS µs to the STW. Fix this by parallelizing the job. Since there are exactly GOMAXPROCS mcaches to flush, this parallelizes quite nicely and brings the STW latency cost down to a constant 5 µs (assuming GOMAXPROCS actually reflects the number of CPUs). Updates #17503. Change-Id: Ibefeb1c2229975d5137c6e67fac3b6c92103742d Reviewed-on: https://go-review.googlesource.com/32033 Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions