- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MapTombstoneCheck (0.25 sec)
-
src/runtime/map_test.go
// Fill a map. for i := 0; i < N; i++ { m[i] = i } runtime.MapTombstoneCheck(m) // Delete half of the entries. for i := 0; i < N; i += 2 { delete(m, i) } runtime.MapTombstoneCheck(m) // Add new entries to fill in holes. for i := N; i < 3*N/2; i++ { m[i] = i } runtime.MapTombstoneCheck(m) // Delete everything. for i := 0; i < 3*N/2; i++ { delete(m, i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/runtime/export_test.go
g0.stackguard1 = g0.stackguard0 stackOverflow(nil) }) } func stackOverflow(x *byte) { var buf [256]byte stackOverflow(&buf[0]) } func MapTombstoneCheck(m map[int]int) { // Make sure emptyOne and emptyRest are distributed correctly. // We should have a series of filled and emptyOne cells, followed by // a series of emptyRest cells. h := *(**hmap)(unsafe.Pointer(&m))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)