sync.Mutex.Unlock
standard libraryThe 23rd most-called standard-library method by production calls. Called 70,846 times across 988 modules; 53,066 of those run outside tests and generated code.
1% in production calls vs 2026-W39 (52,549 → 53,066)
- prod calls
- 53,066
- non-test, non-generated
- all calls
- 70,846
- total callsites
- modules
- 988
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 21%
- 15,075 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Concrete method88%A method on a value whose type is known exactly.
- Embedded method12%Reached through an embedded type.
estimate
Estimated relative cost
Roughly 0.01× the estimated relative cost of fmt.Sprintf . Benchmarked at 3.89 ns/op × 53,066 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Mutex.Unlock from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 3,190 6%
- Docker 2,062 4%
- Grafana 1,186 2%
- gRPC 1,086 2%
- CockroachDB 989 2%
where it's called
Callsites in the wild
12 representative callsites of 70,846, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
go/bufplugin @v0.10.0
internal/pkg/thread/thread.go:79
in loop -
caddyserver/certmagic @v0.25.4
in loop -
charm.land/fantasy @v0.45.2
agent.go:1693
in loop - in loop
-
go/storage @v1.68.0
pcu.go:302
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Mutex.Unlock most in this snapshot.
- github.com/sourcegraph/sourcegraph-public-snapshot3,6395%
- github.com/esengine/DeepSeek-Reasonix3,0294%
- tailscale.com1,6322%
- github.com/kubernetes/kubernetes1,5952%
- vitess.io/vitess1,5072%
siblings
More from sync
The other most-called members in this package. See all →