Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + const AllocatedSizeofThreadContextStruct + const GuardSize + const MaxFPStateLen + const MsgOffsetFromSharedStack + const PerThreadMemSize + const PerThreadPrivateStackOffset + const PerThreadPrivateStackSize + const PerThreadSharedStackOffset + const PerThreadSharedStackSize + const SpinningQueueMemSize + var SighandlerBlob []byte — darwin/amd64, linux/amd64, windows/amd64 + func MsgToStackAddr(msg uintptr) uintptr + func StackAddrToMsg(sp uintptr) uintptr + func StackAddrToSyshandlerStack(sp uintptr) uintptr + type ArchState struct — darwin/amd64, linux/amd64, windows/amd64 + func (s *ArchState) FpLen() int + func (s *ArchState) Init() + func (s *ArchState) String() string + type ContextState uint32 + const ContextStateFault + const ContextStateInvalid + const ContextStateNone + const ContextStateSyscall + const ContextStateSyscallCanBePatched + const ContextStateSyscallTrap + func (s *ContextState) Get() ContextState + func (s *ContextState) Set(state ContextState) + type Msg struct + AppStack uint64 + Context uint64 + Debug uint64 + Err int32 + ErrAdditional int32 + FaultJump int32 + Line int32 + RetAddr uint64 + Self uint64 + State ThreadState + Syshandler uint64 + SyshandlerStack uint64 + ThreadID uint32 + func (m *Msg) ConvertSysmsgErr() *platform.ContextError + func (m *Msg) Init(threadID uint32) + func (m *Msg) String() string + func (m *Msg) WakeSysmsgThread() (bool, syscall.Errno) + type StubError int32 + const StubErrorArchPrctl + const StubErrorBadContextID + const StubErrorBadSpinningQueueDecref + const StubErrorBadSysmsg + const StubErrorBadThreadState + const StubErrorFpStateBadHeader + const StubErrorFutex + type ThreadContext struct + AckedTime uint64 + Debug uint64 + FPState [MaxFPStateLen]byte + FPStateChanged uint64 + Interrupt uint32 + LastThreadID uint32 + Regs linux.PtraceRegs + SentryFastPath uint32 + SignalInfo linux.SignalInfo + Signo int64 + State ContextState + StateChangedTime uint64 + TLS uint64 + ThreadID uint32 + func (c *ThreadContext) Init(initialThreadID uint32) + func (c *ThreadContext) SleepOnState(curState ContextState, timeout *unix.Timespec) syscall.Errno + func (c *ThreadContext) String() string + type ThreadState uint32 + const ThreadStateAsleep + const ThreadStateDone + const ThreadStateInitializing + const ThreadStateNone + const ThreadStatePrep + func (s *ThreadState) CompareAndSwap(old, state ThreadState) bool + func (s *ThreadState) Get() ThreadState + func (s *ThreadState) Set(state ThreadState)