diff --git a/src/cmd/trace/trace.go b/src/cmd/trace/trace.go index 7dcb17d388a26c..0139639dae5c1e 100644 --- a/src/cmd/trace/trace.go +++ b/src/cmd/trace/trace.go @@ -1136,8 +1136,7 @@ func (ctx *traceContext) buildBranch(parent frameNode, stk []*trace.Frame) int { func isSystemGoroutine(entryFn string) bool { // This mimics runtime.isSystemGoroutine as closely as // possible. - // Also, locked g in extra M (with empty entryFn) is system goroutine. - return entryFn == "" || entryFn != "runtime.main" && strings.HasPrefix(entryFn, "runtime.") + return entryFn != "runtime.main" && strings.HasPrefix(entryFn, "runtime.") } // firstTimestamp returns the timestamp of the first event record.