pkginit

package standard library
go1.22.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstrumentGlobalsMap = make(map[string]ir.Node)

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.

View Source
var InstrumentGlobalsSlice = make([]ir.Node, 0, 0)

Functions

func GetRedzoneSizeForGlobal added in go1.19

func GetRedzoneSizeForGlobal(size int64) int64

Calculate redzone for globals.

func MakeTask added in go1.22.0

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:

  1. Initialize all of the packages the current package depends on.
  2. Initialize all the variables that have initializers.
  3. Run any init functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL