diff options
Diffstat (limited to 'src/runtime/mgcmark.go')
| -rw-r--r-- | src/runtime/mgcmark.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go index 2c17d8befa..301d8020f1 100644 --- a/src/runtime/mgcmark.go +++ b/src/runtime/mgcmark.go @@ -54,7 +54,7 @@ func gcMarkRootPrepare() { // Compute how many data and BSS root blocks there are. nBlocks := func(bytes uintptr) int { - return int((bytes + rootBlockBytes - 1) / rootBlockBytes) + return int(divRoundUp(bytes, rootBlockBytes)) } work.nDataRoots = 0 |
