GitPedia
sasha-s

sasha-s/go-deadlock

Online deadlock detection in go (golang)

7 Releases
Latest: 3mo ago
v0.3.9Latest
sasha-ssasha-s·3mo ago·March 18, 2026
GitHub

Reduce allocations from callers (#54), add new unit tests, and fix existing -race unit test failures

v0.3.8
sasha-ssasha-s·3mo ago·March 17, 2026
GitHub

📋 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
sasha-ssasha-s·3mo ago·March 7, 2026
GitHub

📋 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
sasha-ssasha-s·10mo ago·August 31, 2025
GitHub

📋 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
sasha-ssasha-s·1y ago·August 14, 2024
GitHub

📋 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
sasha-ssasha-s·4y ago·July 20, 2021
GitHub

cleanup the docs, fix typos,

faster, cleanerv0.2.0
sasha-ssasha-s·8y ago·January 9, 2018
GitHub

Includes performance improvements https://github.com/sasha-s/go-deadlock/pull/2 and extra checks https://github.com/sasha-s/go-deadlock/pull/7