mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: make struct comments match struct names
Change-Id: I011f66854a9af5f3baa20abebd4b315c15db571f Reviewed-on: https://go-review.googlesource.com/c/go/+/596715 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: shuang cui <imcusg@gmail.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
611f18c4e9
commit
a71bb570d0
5 changed files with 8 additions and 5 deletions
|
|
@ -46,7 +46,7 @@ type gState[R resource] struct {
|
||||||
// goroutine stopped executing. These are flushed on every stop or block.
|
// goroutine stopped executing. These are flushed on every stop or block.
|
||||||
completedRanges []completedRange
|
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.
|
// transition to GoRunning.
|
||||||
startRunningTime trace.Time
|
startRunningTime trace.Time
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ func (cm CounterGranularity) String() string {
|
||||||
// by the Go command and by the coverage runtime.
|
// by the Go command and by the coverage runtime.
|
||||||
const MetaFilesFileName = "metafiles.txt"
|
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
|
// the read in by coverage test support functions within an executing
|
||||||
// "go test -cover" binary.
|
// "go test -cover" binary.
|
||||||
type MetaFileCollection struct {
|
type MetaFileCollection struct {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,10 @@ package buffer
|
||||||
|
|
||||||
import "sync"
|
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
|
type Buffer []byte
|
||||||
|
|
||||||
// Having an initial size gives a dramatic speedup.
|
// Having an initial size gives a dramatic speedup.
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ func userArenaChunkReserveBytes() uintptr {
|
||||||
}
|
}
|
||||||
|
|
||||||
type userArena struct {
|
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.
|
// that we'll free once this user arena is freed.
|
||||||
//
|
//
|
||||||
// Can't use mSpanList here because it's not-in-heap.
|
// Can't use mSpanList here because it's not-in-heap.
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ var Runtime_Semrelease = runtime_Semrelease
|
||||||
var Runtime_procPin = runtime_procPin
|
var Runtime_procPin = runtime_procPin
|
||||||
var Runtime_procUnpin = runtime_procUnpin
|
var Runtime_procUnpin = runtime_procUnpin
|
||||||
|
|
||||||
// poolDequeue testing.
|
// PoolDequeue exports an interface for pollDequeue testing.
|
||||||
type PoolDequeue interface {
|
type PoolDequeue interface {
|
||||||
PushHead(val any) bool
|
PushHead(val any) bool
|
||||||
PopHead() (any, bool)
|
PopHead() (any, bool)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue