sasha-s/go-deadlock
Online deadlock detection in go (golang)
7 Releases
Latest: 3mo ago
v0.3.9Latest
Reduce allocations from callers (#54), add new unit tests, and fix existing -race unit test failures
v0.3.8
📋 What's Changed
- Reduce allocations per lock request (#52) — replaces goroutine-per-lock deadlock detection with `time.AfterFunc` + `sync.Pool`, cutting allocations from 4 to 2 per lock/unlock cycle (~40% throughput improvement).
- Full Changelog: https://github.com/sasha-s/go-deadlock/compare/v0.3.7...v0.3.8
v0.3.7
📋 Changes
- Fix `testing/synctest` compatibility, including Go 1.25 support and related build tags
- Fix concurrent lock tracking under contention
- Prevent lock-order tracking from retaining mutex-containing structs on Go 1.24+
✨ What's New
- This release improves `synctest` compatibility, fixes concurrent lock tracking, and resolves a GC-retention issue in lock-order bookkeeping.
v0.3.6
📋 Changes
- Go 1.25 support
- Updated dependencies (github.com/petermattis/goid)
- Improved test coverage (90.5%)
✨ What's New
- This release includes compatibility updates for Go 1.25 and dependency updates to ensure continued reliability of deadlock detection.
v0.3.3
📋 What's Changed
- Add missing sync.NewCond wrapper by @ncw in https://github.com/sasha-s/go-deadlock/pull/22
- fixed the comment of Opts.DeadlockTimeout in deadlock.go by @h3n4l in https://github.com/sasha-s/go-deadlock/pull/23
- deadlock: Add TryLock wrappers by @jrajahalme in https://github.com/sasha-s/go-deadlock/pull/30
- Reuse timers with sync.Pool by @millfort in https://github.com/sasha-s/go-deadlock/pull/31
✨ New Contributors
- @ncw made their first contribution in https://github.com/sasha-s/go-deadlock/pull/22
- @h3n4l made their first contribution in https://github.com/sasha-s/go-deadlock/pull/23
- @jrajahalme made their first contribution in https://github.com/sasha-s/go-deadlock/pull/30
- @millfort made their first contribution in https://github.com/sasha-s/go-deadlock/pull/31
- Full Changelog: https://github.com/sasha-s/go-deadlock/compare/v0.3.1...v0.3.3
v0.3.0
cleanup the docs, fix typos,
faster, cleanerv0.2.0
Includes performance improvements https://github.com/sasha-s/go-deadlock/pull/2 and extra checks https://github.com/sasha-s/go-deadlock/pull/7
