File tree 5 files changed +8
-5
lines changed
5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ type gState[R resource] struct {
46
46
// goroutine stopped executing. These are flushed on every stop or block.
47
47
completedRanges []completedRange
48
48
49
- // startRunning is the most recent event that caused a goroutine to
49
+ // startRunningTime is the most recent event that caused a goroutine to
50
50
// transition to GoRunning.
51
51
startRunningTime trace.Time
52
52
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ func (cm CounterGranularity) String() string {
267
267
// by the Go command and by the coverage runtime.
268
268
const MetaFilesFileName = "metafiles.txt"
269
269
270
- // MetaFilePaths contains information generated by the Go command and
270
+ // MetaFileCollection contains information generated by the Go command and
271
271
// the read in by coverage test support functions within an executing
272
272
// "go test -cover" binary.
273
273
type MetaFileCollection struct {
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ package buffer
7
7
8
8
import "sync"
9
9
10
- // buffer adapted from go/src/fmt/print.go
10
+ // Buffer is a byte buffer.
11
+ //
12
+ // This implementation is adapted from the unexported type buffer
13
+ // in go/src/fmt/print.go.
11
14
type Buffer []byte
12
15
13
16
// Having an initial size gives a dramatic speedup.
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ func userArenaChunkReserveBytes() uintptr {
232
232
}
233
233
234
234
type userArena struct {
235
- // full is a list of full chunks that have not enough free memory left, and
235
+ // fullList is a list of full chunks that have not enough free memory left, and
236
236
// that we'll free once this user arena is freed.
237
237
//
238
238
// Can't use mSpanList here because it's not-in-heap.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var Runtime_Semrelease = runtime_Semrelease
10
10
var Runtime_procPin = runtime_procPin
11
11
var Runtime_procUnpin = runtime_procUnpin
12
12
13
- // poolDequeue testing.
13
+ // PoolDequeue exports an interface for pollDequeue testing.
14
14
type PoolDequeue interface {
15
15
PushHead (val any ) bool
16
16
PopHead () (any , bool )
You can’t perform that action at this time.
0 commit comments