The loop in gcMark is redundant with the gcworkdone resetting
performed by markroot, which called a few lines later in gcMark.
Change-Id: Ie0a826a614ecfa79e6e6b866e8d1de40ba515856
Reviewed-on: https://go-review.googlesource.com/5880
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
work.ndone = 0
work.nproc = uint32(gcprocs())
- // World is stopped so allglen will not change.
- for i := uintptr(0); i < allglen; i++ {
- gp := allgs[i]
- gp.gcworkdone = false // set to true in gcphasework
- }
-
if trace.enabled {
traceGCScanStart()
}