• Austin Clements's avatar
    runtime: consolidate gcResetGState calls · b0d5e5c5
    Austin Clements authored
    Currently gcResetGState is called by func gcscan_m for concurrent GC
    and directly by func gc for STW GC. Simplify this by consolidating
    these two calls in to one call by func gc above where it splits for
    concurrent and STW GC.
    
    As a consequence, gcResetGState and gcResetMarkState are always called
    together, so the next commit will consolidate these.
    
    Change-Id: Ib62d404c7b32b28f7d3080d26ecf3966cbc4aca0
    Reviewed-on: https://go-review.googlesource.com/16040Reviewed-by: default avatarRick Hudson <rlh@golang.org>
    b0d5e5c5
mgc.go 59.2 KB