From 39e8cb0faac7785f89b21246a45e8cf8d5bc7d95 Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Wed, 14 Aug 2019 16:32:12 +0000 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- src/runtime/mpallocbits_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/runtime/mpallocbits_test.go') 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 -- cgit v1.3