Repository navigation
v1.16.3
A documentation release. references/testing.md now explains how to test that a fix closes a race window, and the CodeQL description matches the shared security workflow.
Testing
- New subsection "Testing an Interleaving: Hold the Lock, Don't Stress It" under Race Detection. A test that repeats a scenario and hopes to hit a microsecond window is a weak guard; the subsection describes the two reliable approaches instead: take the lock that orders the competing operation, or hold the production mutex from the test so the code stops between two steps. It includes an example whose cleanup releases the mutex and waits for the goroutine under test, and notes that the
sync.RWMutexreader-before-writer order it relies on is an implementation detail. Measurements from lufox-digital/ofelia#900 and lufox-digital/ofelia#901, by @CybotTM in #122.
Documentation
Maintenance
Full Changelog: v1.16.2...v1.16.3