diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go index b515568eb0..e118ba69af 100644 --- a/src/runtime/mgcmark.go +++ b/src/runtime/mgcmark.go @@ -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