1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:24:46 -07:00
go/src/runtime/trace
Hana Kim a58286c289 cmd/trace: init goroutine info entries with GoCreate event
golang.org/cl/81315 attempted to distinguish system goroutines
by examining the function name in the goroutine stack. It assumes that
the information would be available when GoSysBlock or GoInSyscall
events are processed, but it turned out the stack information is
set too late (when the goroutine gets a chance to run).

This change initializes the goroutine information entry when
processing GoCreate event which should be one of the very first
events for the every goroutine in trace.

Fixes #22574

Change-Id: I1ed37087ce2e78ed27c9b419b7d942eb4140cc69
Reviewed-on: https://go-review.googlesource.com/83595
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-20 23:04:21 +00:00
..
example_test.go
trace_stack_test.go
trace_test.go cmd/trace: init goroutine info entries with GoCreate event 2017-12-20 23:04:21 +00:00
trace.go runtime/trace: fix a typo in doc 2017-11-15 15:13:50 +00:00