• Rick Hudson's avatar
    runtime: avoid redundant scans · 13aff783
    Rick Hudson authored
    During a concurrent GC stacks are scanned in
    an initial scan phase informing the GC of all
    pointers on the stack. The GC only needs to rescan
    the stack if it potentially changes which can only
    happen if the goroutine runs.
    This CL tracks whether the Goroutine has run
    since it was last scanned and thus may have changed
    its stack. If necessary the stack is rescanned.
    
    Change-Id: I5fb1c4338d42e3f61ab56c9beb63b7b2da25f4f1
    Reviewed-on: https://go-review.googlesource.com/3275Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    13aff783
malloc.go 18 KB