package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
DoLeakCheck iterates through the live object map and logs a message for each object.
DoRepeatedLeakCheck is the same as DoLeakCheck except that it can be called multiple times by the caller to incrementally perform leak checking.
FormatStack converts the given stack into a readable format.
GetLeakMode returns the current leak mode.
LeakCheckEnabled returns whether leak checking is enabled.
LogDecRef logs a reference decrement.
LogIncRef logs a reference increment.
LogTryIncRef logs a successful TryIncRef call.
OnExit is called on sandbox exit.
RecordStack constructs and returns the PCs on the current stack.
Register adds obj to the live object map.
SetLeakMode configures the reference leak checker.
Unregister removes obj from the live object map.
# Constants
LeaksLogWarning indicates that a warning should be logged when leaks are found.
LeaksPanic indidcates that a panic should be issued when leaks are found.
NoLeakChecking indicates that no effort should be made to check for leaks.
# Variables
CleanupSync is used to wait for async cleanup actions.
# Interfaces
CheckedObject represents a reference-counted object with an informative leak detection message.
RefCounter is the interface to be implemented by objects that are reference counted.
TryRefCounter is like RefCounter but allow the ref increment to be tried.
# Type aliases
LeakMode configures the leak checker.