runtime.LockOSThread
standard libraryThe 3235th most-called standard-library function by production calls. Called 307 times across 71 modules; 196 of those run outside tests and generated code.
2% in production calls vs 2026-W48 (193 → 196)
- prod calls
- 196
- non-test, non-generated
- all calls
- 307
- total callsites
- modules
- 71
- distinct callers
- in loop
- 1%
- of prod calls
- in tests
- 36%
- 111 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into LockOSThread from notable Go projects. Open one on the map to see what else it hammers.
- Docker 35 18%
- containerd 10 5%
- Cilium 8 4%
- Istio 4 2%
- KubeVirt 4 2%
where it's called
Callsites in the wild
12 representative callsites of 307, prioritizing in-loop and non-test usage. We link to source, never display it.
-
google/gvisor @v0.0.0-20261130174204-4c7ed132a44d
in loop - in loop
- in loop test
- in loop test
- in loop test
-
google/gopacket @v1.1.19
in loop test - in loop test
- in loop test
-
google/gvisor @v0.0.0-20261130174204-4c7ed132a44d
in loop test -
-
containerd/go-runc @v1.2.1
-
fyne.io/fyne @v1.4.3
internal/driver/glfw/loop.go:37
top callers
The modules that reach for it
The modules that call LockOSThread most in this snapshot.
- github.com/docker/libnetwork4314%
- github.com/google/gvisor4113%
- github.com/containernetworking/plugins165%
- github.com/docker/docker155%
- github.com/moby/moby155%
siblings
More from runtime
The other most-called functions in this package. See all →