MCPcopy
hub / github.com/uber-go/goleak / isSyscallStack

Function isSyscallStack

options.go:183–187  ·  view source on GitHub ↗
(s stack.Stack)

Source from the content-addressed store, hash-verified

181}
182
183func isSyscallStack(s stack.Stack) bool {
184 // Typically runs in the background when code uses CGo:
185 // https://github.com/golang/go/issues/16714
186 return s.HasFunction("runtime.goexit") && strings.HasPrefix(s.State(), "syscall")
187}
188
189func isStdLibStack(s stack.Stack) bool {
190 // Importing os/signal starts a background goroutine.

Callers

nothing calls this directly

Calls 2

HasFunctionMethod · 0.80
StateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…