-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
The docs for the -test.memprofilerate flag say "if >= 0", but the code is simply greater, not greater than or equal:
~/go/src/testing$ git grep memProfileRate
testing.go: memProfileRate = flag.Int("test.memprofilerate", 0, "if >=0, sets runtime.MemProfileRate")
testing.go: if *memProfileRate > 0 {
testing.go: runtime.MemProfileRate = *memProfileRate
And the default is 512KB, not 0: https://golang.org/pkg/runtime/#pkg-variables
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.