// the percentage threshold for hot/cold partitioning.
TotalWeight int64
- // EdgeMap contains all unique call edges in the profile and their
+ // NamedEdgeMap contains all unique call edges in the profile and their
// edge weight.
NamedEdgeMap NamedEdgeMap
// RegArgs is a slice of register-memory pairs that must be spilled and unspilled in the uncommon path of function entry.
RegArgs []Spill
- // AuxCall describing parameters and results for this function.
+ // OwnAux describes parameters and results for this function.
OwnAux *AuxCall
freeValues *Value // free Values linked by argstorage[0]. All other fields except ID are 0/nil.
}
type pair struct {
- v, w *Value // a pair of values, ordered by ID.
+ // a pair of values, ordered by ID.
// v can be nil, to mean the zero value.
// for booleans the zero value (v == nil) is false.
- d domain
+ v, w *Value
+ d domain
}
// fact is a pair plus a relation for that pair.
facts map[pair]relation // current known set of relation
stack []fact // previous sets of relations
- // order is a couple of partial order sets that record information
+ // order* is a couple of partial order sets that record information
// about relations between SSA values in the signed and unsigned
// domain.
orderS *poset
// path.
matchWildcard func(path string) bool
- // canMatchWildcard, if non-nil, reports whether the module with the given
+ // canMatchWildcardInModule, if non-nil, reports whether the module with the given
// path could lexically contain a package matching pattern, which must be a
// wildcard.
canMatchWildcardInModule func(mPath string) bool
// Once done, all operations fail with ErrConnDone.
done atomic.Bool
- // releaseConn is a cache of c.closemuRUnlockCondReleaseConn
+ releaseConnOnce sync.Once
+ // releaseConnCache is a cache of c.closemuRUnlockCondReleaseConn
// to save allocations in a call to grabConn.
- releaseConnOnce sync.Once
releaseConnCache releaseConn
}
// tparams is a slice of the constructed TypeParams for the element.
tparams []*types.TypeParam
- // devived is a slice of types derived from tparams, which may be
+ // derived is a slice of types derived from tparams, which may be
// instantiated while reading the current element.
derived []derivedInfo
derivedTypes []types.Type // lazily instantiated from derived
var parseDepthTests = []struct {
name string
format string
- // multiplier is used when a single statement may result in more than one
+ // parseMultiplier is used when a single statement may result in more than one
// change in the depth level, for instance "1+(..." produces a BinaryExpr
// followed by a UnaryExpr, which increments the depth twice. The test
// case comment explains which nodes are triggering the multiple depth
// See sleepRatio for more details.
sleepController piController
- // cooldown is the time left in nanoseconds during which we avoid
+ // controllerCooldown is the time left in nanoseconds during which we avoid
// using the controller and we hold sleepRatio at a conservative
// value. Used if the controller's assumptions fail to hold.
controllerCooldown int64
sysmonwait atomic.Bool
sysmonnote note
- // safepointFn should be called on each P at the next GC
+ // safePointFn should be called on each P at the next GC
// safepoint if p.runSafePointFn is set.
safePointFn func(*p)
safePointWait int32