mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: Fix panic when trying to stop CPU profiling with profiler turned off
Fixes #7063. R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/47950043
This commit is contained in:
parent
79653e4121
commit
aeeda707ff
2 changed files with 6 additions and 1 deletions
|
|
@ -126,3 +126,8 @@ func TestRuntimeGogoBytes(t *testing.T) {
|
|||
|
||||
t.Fatalf("go tool nm did not report size for runtime.gogo")
|
||||
}
|
||||
|
||||
// golang.org/issue/7063
|
||||
func TestStopCPUProfilingWithProfilerOff(t *testing.T) {
|
||||
SetCPUProfileRate(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue