// goroutine stopped executing. These are flushed on every stop or block.
completedRanges []completedRange
- // startRunning is the most recent event that caused a goroutine to
+ // startRunningTime is the most recent event that caused a goroutine to
// transition to GoRunning.
startRunningTime trace.Time
// by the Go command and by the coverage runtime.
const MetaFilesFileName = "metafiles.txt"
-// MetaFilePaths contains information generated by the Go command and
+// MetaFileCollection contains information generated by the Go command and
// the read in by coverage test support functions within an executing
// "go test -cover" binary.
type MetaFileCollection struct {
import "sync"
-// buffer adapted from go/src/fmt/print.go
+// Buffer is a byte buffer.
+//
+// This implementation is adapted from the unexported type buffer
+// in go/src/fmt/print.go.
type Buffer []byte
// Having an initial size gives a dramatic speedup.
}
type userArena struct {
- // full is a list of full chunks that have not enough free memory left, and
+ // fullList is a list of full chunks that have not enough free memory left, and
// that we'll free once this user arena is freed.
//
// Can't use mSpanList here because it's not-in-heap.
var Runtime_procPin = runtime_procPin
var Runtime_procUnpin = runtime_procUnpin
-// poolDequeue testing.
+// PoolDequeue exports an interface for pollDequeue testing.
type PoolDequeue interface {
PushHead(val any) bool
PopHead() (any, bool)