You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Review fixes: cap setIsCached to bitmap bounds, concurrent test, nits
- Fix OOB panic in setIsCached when range extends past cache size.
The old sync.Map.Store silently accepted out-of-bounds keys, but
the bitmap would panic on index OOB. Cap n to len(dirty)*64.
- Add TestSetIsCached_PastCacheSize to verify the fix.
- Add TestSetIsCached_ConcurrentOverlapping: 8 goroutines with
overlapping ranges under -race to prove atomic OR correctness.
- Remove redundant sort.SliceIsSorted (covered by require.Equal).
- Use 2 MiB block size in BoundaryCrossing test (real hugepage size)
to exercise a second block size and drop nolint:unparam.
- Make benchmark consts consistently int64.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments