From 14849f0fa57c67996bb00bd42bb14cef9f4e9a1e Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Mon, 12 Aug 2019 22:30:39 +0000 Subject: runtime: add new page allocator constants and description This change is the first of a series of changes which replace the current page allocator (which is based on the contents of mgclarge.go and some of mheap.go) with one based on free/used bitmaps. It adds in the key constants for the page allocator as well as a comment describing the implementation. Updates #35112. Change-Id: I839d3a07f46842ad379701d27aa691885afdba63 Reviewed-on: https://go-review.googlesource.com/c/go/+/190619 Run-TryBot: Michael Knyszek Reviewed-by: Keith Randall Reviewed-by: Austin Clements --- src/runtime/mpagealloc_64bit.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/runtime/mpagealloc_64bit.go (limited to 'src/runtime/mpagealloc_64bit.go') diff --git a/src/runtime/mpagealloc_64bit.go b/src/runtime/mpagealloc_64bit.go new file mode 100644 index 0000000000..7991f344fc --- /dev/null +++ b/src/runtime/mpagealloc_64bit.go @@ -0,0 +1,14 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build amd64 !darwin,arm64 mips64 mips64le ppc64 ppc64le s390x + +// See mpagealloc_32bit.go for why darwin/arm64 is excluded here. + +package runtime + +const ( + // The number of levels in the radix tree. + summaryLevels = 5 +) -- cgit v1.3