• Austin Clements's avatar
    runtime: eliminate gosweepone · f3bb4cbf
    Austin Clements authored
    gosweepone just switches to the system stack and calls sweepone.
    sweepone doesn't need to run on the system stack, so this is pretty
    pointless.
    
    Historically, this was necessary because the sweeper was written in C
    and hence needed to run on the system stack. gosweepone was the
    function that Go code (specifically, bgsweep) used to call into the C
    sweeper implementation. This probably became unnecessary in 2014 with
    CL golang.org/cl/167540043, which ported the sweeper to Go.
    
    This CL changes all callers of gosweepone to call sweepone and
    eliminates gosweepone.
    
    Change-Id: I26b8ef0c7d060b4c0c5dedbb25ecfc936acc7269
    Reviewed-on: https://go-review.googlesource.com/c/138657
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    f3bb4cbf
mgc.go 69.5 KB