From 689f6f77f0d54b597ebc82e9bc4a8e1a59bce04d Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Thu, 17 Oct 2019 17:42:15 +0000 Subject: runtime: integrate new page allocator into runtime This change integrates all the bits and pieces of the new page allocator into the runtime, behind a global constant. Updates #35112. Change-Id: I6696bde7bab098a498ab37ed2a2caad2a05d30ec Reviewed-on: https://go-review.googlesource.com/c/go/+/201764 Run-TryBot: Michael Knyszek TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- src/runtime/malloc.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runtime/malloc.go') diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index bae981ce0c..2fd71fab2d 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -322,6 +322,9 @@ const ( // // This should agree with minZeroPage in the compiler. minLegalPointer uintptr = 4096 + + // Whether to use the old page allocator or not. + oldPageAllocator = true ) // physPageSize is the size in bytes of the OS's physical pages. -- cgit v1.3-5-g9baa