- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkPallocBits (0.37 sec)
-
src/runtime/mpallocbits_test.go
package runtime_test import ( "fmt" "math/rand" . "runtime" "testing" ) // Ensures that got and want are the same, and if not, reports // detailed diff information. 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)) for _, bits := range d { t.Logf("\t@ bit index %d", bits.I)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 17 22:00:17 UTC 2020 - 13.7K bytes - Viewed (0) -
src/runtime/mpagealloc_test.go
continue } if (gb == nil && wb != nil) || (gb != nil && wb == nil) { t.Errorf("chunk %d nilness mismatch", i) } if !checkPallocBits(t, gb.PallocBits(), wb.PallocBits()) { t.Logf("in chunk %d (mallocBits)", i) } if !checkPallocBits(t, gb.Scavenged(), wb.Scavenged()) { t.Logf("in chunk %d (scavenged)", i) } } // TODO(mknyszek): Verify summaries too? }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 06 19:16:48 UTC 2021 - 32.6K bytes - Viewed (0)