Go stdlib package — runtime/debug. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.FreeOSMemory()NeutralFreeOSMemory()
FreeOSMemory forces a garbage collection followed by an
.ParseBuildInfo()NeutralParseBuildInfo(data string) (*BuildInfo, error)
ParseBuildInfo function.
.PrintStack()NeutralPrintStack()
PrintStack prints to standard error the stack trace returned by runtime.Stack.
.ReadBuildInfo()NeutralReadBuildInfo() (*BuildInfo, bool)
ReadBuildInfo returns the build information embedded
.ReadGCStats()NeutralReadGCStats(stats *GCStats)
ReadGCStats reads statistics about garbage collection into stats.
.SetGCPercent()NeutralSetGCPercent(percent int) int
SetGCPercent sets the garbage collection target percentage:
.SetMaxStack()NeutralSetMaxStack(bytes int) int
SetMaxStack sets the maximum amount of memory that
.SetMaxThreads()NeutralSetMaxThreads(threads int) int
SetMaxThreads sets the maximum number of operating system
.SetMemoryLimit()NeutralSetMemoryLimit(limit int64) int64
SetMemoryLimit provides the runtime with a soft memory limit.
| FQN | Field | |
|---|---|---|
| runtime/debug | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # runtime/debug