]> Cypherpunks repositories - gostls13.git/commit
runtime: add pallocbits and tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 12 Aug 2019 19:08:39 +0000 (19:08 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 7 Nov 2019 16:35:53 +0000 (16:35 +0000)
commitb3a361337c5ea48fb4de832b9883f19e172e1bb5
tree58297460088995398ee66554499086af48dd848c
parent6b1d5471b9ab649322def7075d488c65d5f78cbf
runtime: add pallocbits and tests

This change adds a per-chunk bitmap for page allocation called
pallocBits with algorithms for allocating and freeing pages out of the
bitmap. This change also adds tests for pallocBits, but does not yet
integrate it into the runtime.

Updates #35112.

Change-Id: I479006ed9f1609c80eedfff0580d5426b064b0ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/190620
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/go/build/deps_test.go
src/runtime/export_test.go
src/runtime/mpallocbits.go [new file with mode: 0644]
src/runtime/mpallocbits_test.go [new file with mode: 0644]