Commit df885e70 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: ignore more uninteresting goroutines

These only show up if GOTRACEBACK=2

Update #5005

R=golang-dev, fullung
CC=golang-dev
https://golang.org/cl/8156044
parent 871177df
...@@ -27,7 +27,11 @@ func interestingGoroutines() (gs []string) { ...@@ -27,7 +27,11 @@ func interestingGoroutines() (gs []string) {
strings.Contains(stack, "created by net.startServer") || strings.Contains(stack, "created by net.startServer") ||
strings.Contains(stack, "created by testing.RunTests") || strings.Contains(stack, "created by testing.RunTests") ||
strings.Contains(stack, "closeWriteAndWait") || strings.Contains(stack, "closeWriteAndWait") ||
strings.Contains(stack, "testing.Main(") { strings.Contains(stack, "testing.Main(") ||
// These only show up with GOTRACEBACK=2; Issue 5005 (comment 28)
strings.Contains(stack, "runtime.goexit") ||
strings.Contains(stack, "created by runtime.gc") ||
strings.Contains(stack, "runtime.MHeap_Scavenger") {
continue continue
} }
gs = append(gs, stack) gs = append(gs, stack)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment