Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 GO-2023-1840 GO-2023-1840: Unsafe behavior in setuid/setgid binaries in runtime Changes in this version + const Compiler + const GOARCH + const GOOS + var MemProfileRate int = defaultMemProfileRate(512 * 1024) + func BlockProfile(p []BlockProfileRecord) (n int, ok bool) + func Breakpoint() + func CPUProfile() []byte + func Caller(skip int) (pc uintptr, file string, line int, ok bool) + func Callers(skip int, pc []uintptr) int + func GC() + func GOMAXPROCS(n int) int + func GOROOT() string + func Goexit() + func GoroutineProfile(p []StackRecord) (n int, ok bool) + func Gosched() + func KeepAlive(x any) + func LockOSThread() + func MemProfile(p []MemProfileRecord, inuseZero bool) (n int, ok bool) + func MutexProfile(p []BlockProfileRecord) (n int, ok bool) + func NumCPU() int + func NumCgoCall() int64 + func NumGoroutine() int + func ReadMemStats(m *MemStats) + func ReadTrace() []byte + func SetBlockProfileRate(rate int) + func SetCPUProfileRate(hz int) + func SetCgoTraceback(version int, traceback, context, symbolizer unsafe.Pointer) + func SetFinalizer(obj any, finalizer any) + func SetMutexProfileFraction(rate int) int + func Stack(buf []byte, all bool) int + func StartTrace() error + func StopTrace() + func ThreadCreateProfile(p []StackRecord) (n int, ok bool) + func UnlockOSThread() + func Version() string + type BlockProfileRecord struct + Count int64 + Cycles int64 + type Error interface + RuntimeError func() + type Frame struct + Entry uintptr + File string + Func *Func + Function string + Line int + PC uintptr + type Frames struct + func CallersFrames(callers []uintptr) *Frames + func (ci *Frames) Next() (frame Frame, more bool) + type Func struct + func FuncForPC(pc uintptr) *Func + func (f *Func) Entry() uintptr + func (f *Func) FileLine(pc uintptr) (file string, line int) + func (f *Func) Name() string + type MemProfileRecord struct + AllocBytes int64 + AllocObjects int64 + FreeBytes int64 + FreeObjects int64 + Stack0 [32]uintptr + func (r *MemProfileRecord) InUseBytes() int64 + func (r *MemProfileRecord) InUseObjects() int64 + func (r *MemProfileRecord) Stack() []uintptr + type MemStats struct + Alloc uint64 + BuckHashSys uint64 + BySize [61]struct{ ... } + DebugGC bool + EnableGC bool + Frees uint64 + GCCPUFraction float64 + GCSys uint64 + HeapAlloc uint64 + HeapIdle uint64 + HeapInuse uint64 + HeapObjects uint64 + HeapReleased uint64 + HeapSys uint64 + LastGC uint64 + Lookups uint64 + MCacheInuse uint64 + MCacheSys uint64 + MSpanInuse uint64 + MSpanSys uint64 + Mallocs uint64 + NextGC uint64 + NumForcedGC uint32 + NumGC uint32 + OtherSys uint64 + PauseEnd [256]uint64 + PauseNs [256]uint64 + PauseTotalNs uint64 + StackInuse uint64 + StackSys uint64 + Sys uint64 + TotalAlloc uint64 + type StackRecord struct + Stack0 [32]uintptr + func (r *StackRecord) Stack() []uintptr + type TypeAssertionError struct + func (*TypeAssertionError) RuntimeError() + func (e *TypeAssertionError) Error() string