mirror of https://github.com/golang/go.git
runtime: compute data and bss root work units in one loop
This commit is contained in:
parent
de5b418bea
commit
711b8b8b93
|
|
@ -73,9 +73,7 @@ func gcMarkRootPrepare() {
|
|||
if nDataRoots > work.nDataRoots {
|
||||
work.nDataRoots = nDataRoots
|
||||
}
|
||||
}
|
||||
|
||||
for _, datap := range activeModules() {
|
||||
nBSSRoots := nBlocks(datap.ebss - datap.bss)
|
||||
if nBSSRoots > work.nBSSRoots {
|
||||
work.nBSSRoots = nBSSRoots
|
||||
|
|
|
|||
Loading…
Reference in New Issue