• Austin Clements's avatar
    runtime: don't adjust GC trigger on forced GC · 2919132e
    Austin Clements authored
    Forced GCs don't provide good information about how to adjust the GC
    trigger. Currently we avoid adjusting the trigger on forced GC because
    forced GC is also STW and we don't adjust the trigger on STW GC.
    However, this will become a problem when forced GC is concurrent.
    
    Fix this by skipping trigger adjustment if the GC was user-forced.
    
    For #18216.
    
    Change-Id: I03dfdad12ecd3cfeca4573140a0768abb29aac5e
    Reviewed-on: https://go-review.googlesource.com/38951
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarRick Hudson <rlh@golang.org>
    2919132e
mgc.go 65.1 KB