]> Cypherpunks repositories - gostls13.git/commit
runtime: account mark worker time before gcMarkDone
authorAustin Clements <austin@google.com>
Mon, 26 Oct 2015 20:48:36 +0000 (16:48 -0400)
committerAustin Clements <austin@google.com>
Thu, 5 Nov 2015 21:23:49 +0000 (21:23 +0000)
commitd986bf27414161f4a4fc41c4c564bad26ebc57e7
treea6b72b6281d01b24566145d3e390fcb8e047df75
parent171204b5617b317250d54bd45750476f69ee33d8
runtime: account mark worker time before gcMarkDone

Currently gcMarkDone takes basically no time, so it's okay to account
the worker time after calling it. However, gcMarkDone is about to take
potentially *much* longer because it may perform all of mark
termination. Prepare for this by swapping the order so we account the
time before calling gcMarkDone.

Change-Id: I90c7df68192acfc4fd02a7254dae739dda4e2fcb
Reviewed-on: https://go-review.googlesource.com/16390
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/mgc.go