aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpallocbits_test.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2019-08-14 16:32:12 +0000
committerMichael Knyszek <mknyszek@google.com>2019-11-07 19:11:26 +0000
commit39e8cb0faac7785f89b21246a45e8cf8d5bc7d95 (patch)
tree58eaa62ff08840a9c60f19ee6542cfe4ba7cb8af /src/runtime/mpallocbits_test.go
parent05aa4a7b7447051d187e0a86e53eee99fe065851 (diff)
downloadgo-39e8cb0faac7785f89b21246a45e8cf8d5bc7d95.tar.gz
go-39e8cb0faac7785f89b21246a45e8cf8d5bc7d95.zip
runtime: add new page allocator core
This change adds a new bitmap-based allocator to the runtime with tests. It does not yet integrate the page allocator into the runtime and thus this change is almost purely additive. Updates #35112. Change-Id: Ic3d024c28abee8be8797d3918116a80f901cc2bf Reviewed-on: https://go-review.googlesource.com/c/go/+/190622 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/mpallocbits_test.go')
-rw-r--r--src/runtime/mpallocbits_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/mpallocbits_test.go b/src/runtime/mpallocbits_test.go
index 668ec12b05..2ed5fd7ae9 100644
--- a/src/runtime/mpallocbits_test.go
+++ b/src/runtime/mpallocbits_test.go
@@ -13,7 +13,7 @@ import (
// Ensures that got and want are the same, and if not, reports
// detailed diff information.
-func checkPallocBits(t *testing.T, got, want *PallocBits) {
+func checkPallocBits(t *testing.T, got, want *PallocBits) bool {
d := DiffPallocBits(got, want)
if len(d) != 0 {
t.Errorf("%d range(s) different", len(d))
@@ -22,7 +22,9 @@ func checkPallocBits(t *testing.T, got, want *PallocBits) {
t.Logf("\t| got: %s", StringifyPallocBits(got, bits))
t.Logf("\t| want: %s", StringifyPallocBits(want, bits))
}
+ return false
}
+ return true
}
// makePallocBits produces an initialized PallocBits by setting