aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mpagealloc.go')
-rw-r--r--src/runtime/mpagealloc.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/mpagealloc.go b/src/runtime/mpagealloc.go
index c9491e31f4..4c58fb6e02 100644
--- a/src/runtime/mpagealloc.go
+++ b/src/runtime/mpagealloc.go
@@ -49,6 +49,7 @@ package runtime
import (
"internal/runtime/atomic"
+ "internal/runtime/gc"
"unsafe"
)
@@ -58,7 +59,7 @@ const (
pallocChunkPages = 1 << logPallocChunkPages
pallocChunkBytes = pallocChunkPages * pageSize
logPallocChunkPages = 9
- logPallocChunkBytes = logPallocChunkPages + pageShift
+ logPallocChunkBytes = logPallocChunkPages + gc.PageShift
// The number of radix bits for each level.
//