package pkginit
import "cmd/compile/internal/pkginit"
Index ¶
Variables ¶
InstrumentGlobalsMap contains only package-local (and unlinknamed from somewhere else) globals. And the key is the object name. For example, in package p, a global foo would be in this map as "foo". Consider range over maps is nondeterministic, make a slice to hold all the values in the InstrumentGlobalsMap and iterate over the InstrumentGlobalsSlice.
Functions ¶
func GetRedzoneSizeForGlobal ¶
Calculate redzone for globals.
func MakeTask ¶
func MakeTask()
MakeTask makes an initialization record for the package, if necessary. See runtime/proc.go:initTask for its layout. The 3 tasks for initialization are:
- Initialize all of the packages the current package depends on.
- Initialize all the variables that have initializers.
- Run any init functions.
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 9 minutes ago –
Tools for package owners.