File tree 9 files changed +13
-12
lines changed
9 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ type Profile struct {
129
129
// the percentage threshold for hot/cold partitioning.
130
130
TotalWeight int64
131
131
132
- // EdgeMap contains all unique call edges in the profile and their
132
+ // NamedEdgeMap contains all unique call edges in the profile and their
133
133
// edge weight.
134
134
NamedEdgeMap NamedEdgeMap
135
135
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ type Func struct {
64
64
65
65
// RegArgs is a slice of register-memory pairs that must be spilled and unspilled in the uncommon path of function entry.
66
66
RegArgs []Spill
67
- // AuxCall describing parameters and results for this function.
67
+ // OwnAux describes parameters and results for this function.
68
68
OwnAux * AuxCall
69
69
70
70
freeValues * Value // free Values linked by argstorage[0]. All other fields except ID are 0/nil.
Original file line number Diff line number Diff line change @@ -100,10 +100,11 @@ func (d domain) String() string {
100
100
}
101
101
102
102
type pair struct {
103
- v , w * Value // a pair of values, ordered by ID.
103
+ // a pair of values, ordered by ID.
104
104
// v can be nil, to mean the zero value.
105
105
// for booleans the zero value (v == nil) is false.
106
- d domain
106
+ v , w * Value
107
+ d domain
107
108
}
108
109
109
110
// fact is a pair plus a relation for that pair.
@@ -165,7 +166,7 @@ type factsTable struct {
165
166
facts map [pair ]relation // current known set of relation
166
167
stack []fact // previous sets of relations
167
168
168
- // order is a couple of partial order sets that record information
169
+ // order* is a couple of partial order sets that record information
169
170
// about relations between SSA values in the signed and unsigned
170
171
// domain.
171
172
orderS * poset
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ type query struct {
55
55
// path.
56
56
matchWildcard func (path string ) bool
57
57
58
- // canMatchWildcard , if non-nil, reports whether the module with the given
58
+ // canMatchWildcardInModule , if non-nil, reports whether the module with the given
59
59
// path could lexically contain a package matching pattern, which must be a
60
60
// wildcard.
61
61
canMatchWildcardInModule func (mPath string ) bool
Original file line number Diff line number Diff line change @@ -1979,9 +1979,9 @@ type Conn struct {
1979
1979
// Once done, all operations fail with ErrConnDone.
1980
1980
done atomic.Bool
1981
1981
1982
- // releaseConn is a cache of c.closemuRUnlockCondReleaseConn
1982
+ releaseConnOnce sync.Once
1983
+ // releaseConnCache is a cache of c.closemuRUnlockCondReleaseConn
1983
1984
// to save allocations in a call to grabConn.
1984
- releaseConnOnce sync.Once
1985
1985
releaseConnCache releaseConn
1986
1986
}
1987
1987
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ type readerDict struct {
118
118
// tparams is a slice of the constructed TypeParams for the element.
119
119
tparams []* types.TypeParam
120
120
121
- // devived is a slice of types derived from tparams, which may be
121
+ // derived is a slice of types derived from tparams, which may be
122
122
// instantiated while reading the current element.
123
123
derived []derivedInfo
124
124
derivedTypes []types.Type // lazily instantiated from derived
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ type x int // comment
573
573
var parseDepthTests = []struct {
574
574
name string
575
575
format string
576
- // multiplier is used when a single statement may result in more than one
576
+ // parseMultiplier is used when a single statement may result in more than one
577
577
// change in the depth level, for instance "1+(..." produces a BinaryExpr
578
578
// followed by a UnaryExpr, which increments the depth twice. The test
579
579
// case comment explains which nodes are triggering the multiple depth
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ type scavengerState struct {
307
307
// See sleepRatio for more details.
308
308
sleepController piController
309
309
310
- // cooldown is the time left in nanoseconds during which we avoid
310
+ // controllerCooldown is the time left in nanoseconds during which we avoid
311
311
// using the controller and we hold sleepRatio at a conservative
312
312
// value. Used if the controller's assumptions fail to hold.
313
313
controllerCooldown int64
Original file line number Diff line number Diff line change @@ -857,7 +857,7 @@ type schedt struct {
857
857
sysmonwait atomic.Bool
858
858
sysmonnote note
859
859
860
- // safepointFn should be called on each P at the next GC
860
+ // safePointFn should be called on each P at the next GC
861
861
// safepoint if p.runSafePointFn is set.
862
862
safePointFn func (* p )
863
863
safePointWait int32
You can’t perform that action at this time.
0 commit comments