• Austin Clements's avatar
    runtime: account mark worker time before gcMarkDone · d986bf27
    Austin Clements authored
    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/16390Reviewed-by: default avatarRick Hudson <rlh@golang.org>
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    d986bf27
mgc.go 61.7 KB