]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix field names
authorcui fliter <imcusg@gmail.com>
Sat, 18 Nov 2023 05:51:35 +0000 (13:51 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 27 Nov 2023 15:48:25 +0000 (15:48 +0000)
Change-Id: I3ad7a50707486ebdbbd676b3581df6e3ed0fd3a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/543476
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>

src/cmd/compile/internal/pgo/irgraph.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/prove.go
src/cmd/go/internal/modget/query.go
src/database/sql/sql.go
src/go/internal/gcimporter/ureader.go
src/go/parser/parser_test.go
src/runtime/mgcscavenge.go
src/runtime/runtime2.go

index 7a7cd20f2b4c9db0e1c7acbd5741a81bf66e1b28..54ac65027234813a501a7c80c22c07804055a9bf 100644 (file)
@@ -129,7 +129,7 @@ type Profile struct {
        // 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
 
index e94cb77f9230b8495685c2cfcc928d2da0dfd3ca..529c119dc3da5aea7d9b312dec7636b8f1781311 100644 (file)
@@ -64,7 +64,7 @@ type Func struct {
 
        // 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.
index 91f5fbe7652a6db56d3a1d785ad3ed329a821ba7..842719fb4c9820f57a1a8bbe24c53fc8c9be0a0c 100644 (file)
@@ -100,10 +100,11 @@ func (d domain) String() string {
 }
 
 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.
@@ -165,7 +166,7 @@ type factsTable struct {
        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
index b78c1c4621ad610093419cf9e20a82b8a5628f8a..498ba6c2ff862b50710662cf7f10a72a4a83cafe 100644 (file)
@@ -55,7 +55,7 @@ type query struct {
        // 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
index 44b202192a46d1de16cd7cc87d4b8ea09cbcd543..4f1197dc6e08f26c336d22449af70dfe83315478 100644 (file)
@@ -1979,9 +1979,9 @@ type Conn struct {
        // 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
 }
 
index ac85a415b1d0fe9e8d7822d5a86049acbf6c9fbe..5397a2796f786900bd315ab98621b1b5a170bf03 100644 (file)
@@ -118,7 +118,7 @@ type readerDict struct {
        // 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
index e72c03a3d47daeb55de03c6a5002e8ab03aca7e1..43b3416b27d7f66d539944f0fb6fba8dbb23a5ec 100644 (file)
@@ -573,7 +573,7 @@ type x int // comment
 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
index e6725b4622038038968e981e0340791db02463f5..86c2103f186887e67b2ed30bd13f582ca95354ab 100644 (file)
@@ -307,7 +307,7 @@ type scavengerState struct {
        // 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
index 6d40c7c4666d52bc145f9cf3c27f132cf94a6087..01f1a50670fcfcc6e694259a6b856cf186f9d998 100644 (file)
@@ -857,7 +857,7 @@ type schedt struct {
        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