]> Cypherpunks repositories - gostls13.git/commit
runtime: move tSweepTerm capture closer to STW
authorAustin Clements <austin@google.com>
Tue, 18 Jul 2017 15:21:15 +0000 (11:21 -0400)
committerAustin Clements <austin@google.com>
Tue, 18 Jul 2017 16:13:05 +0000 (16:13 +0000)
commit73d02735734e1ed1e4d1f5a7c534206596f3903a
tree9744e723f7eafa11c03ff7bf420bc86b0cf0577b
parentc2c07c798940f484eece7a57af568783f8a02839
runtime: move tSweepTerm capture closer to STW

tSweepTerm and pauseStart are supposed to be when STW was triggered,
but right now they're captured a bit before STW. Move these down to
immediately before we trigger STW.

Fixes #19590.

Change-Id: Icd48a5c4d45c9b36187ff986e4f178b5064556c1
Reviewed-on: https://go-review.googlesource.com/49612
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/mgc.go