]> Cypherpunks repositories - gostls13.git/commit
runtime: add new page allocator constants and description
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 12 Aug 2019 22:30:39 +0000 (22:30 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 7 Nov 2019 16:20:25 +0000 (16:20 +0000)
commit14849f0fa57c67996bb00bd42bb14cef9f4e9a1e
tree7dbef5d83aa016fa38c6138985e5510d57cdea9b
parent0bf2eb5d4d1ee166d7649258da61e4712a05f383
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 <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mpagealloc.go [new file with mode: 0644]
src/runtime/mpagealloc_32bit.go [new file with mode: 0644]
src/runtime/mpagealloc_64bit.go [new file with mode: 0644]