diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2025-03-04 19:02:48 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-04-23 08:00:33 -0700 |
| commit | 528bafa0498bb26a3b3961fa5bf50d02bd7101bb (patch) | |
| tree | eb72406f4a0ce690d368b2377e2df031457775ca /src/runtime/mpagealloc.go | |
| parent | ecdd429a3be7abde6e169b79da13bffdba064cb4 (diff) | |
| download | go-528bafa0498bb26a3b3961fa5bf50d02bd7101bb.tar.xz | |
runtime: move sizeclass defs to new package internal/runtime/gc
We will want to reference these definitions from new generator programs,
and this is a good opportunity to cleanup all these old C-style names.
Change-Id: Ifb06f0afc381e2697e7877f038eca786610c96de
Reviewed-on: https://go-review.googlesource.com/c/go/+/655275
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/mpagealloc.go')
| -rw-r--r-- | src/runtime/mpagealloc.go | 3 |
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. // |
