- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CheckScavengedBitsCleared (0.22 sec)
-
src/runtime/malloc_test.go
want := "OK\n" if got != want { t.Fatalf("expected %q, but got %q", want, got) } } func TestScavengedBitsCleared(t *testing.T) { var mismatches [128]BitsMismatch if n, ok := CheckScavengedBitsCleared(mismatches[:]); !ok { t.Errorf("uncleared scavenged bits") for _, m := range mismatches[:n] { t.Logf("\t@ address 0x%x", m.Base) t.Logf("\t| got: %064b", m.Got) t.Logf("\t| want: %064b", m.Want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 10.6K bytes - Viewed (0) -
src/runtime/export_test.go
func PageBase(c ChunkIdx, pageIdx uint) uintptr { return chunkBase(chunkIdx(c)) + uintptr(pageIdx)*pageSize } type BitsMismatch struct { Base uintptr Got, Want uint64 } func CheckScavengedBitsCleared(mismatches []BitsMismatch) (n int, ok bool) { ok = true // Run on the system stack to avoid stack growth allocation. systemstack(func() { getg().m.mallocing++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)