mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Extra Ms may lead to the "no consistent ordering of events possible" error when parsing trace file with cgo enabled, since:
1. The gs in the extra Ms may be in `_Gdead` status while starting trace by invoking `runtime.StartTrace`,
2. and these gs will trigger `traceEvGoSysExit` events in `runtime.exitsyscall` when invoking go functions from c,
3. then, the events of those gs are under non-consistent ordering, due to missing the previous events.
Add two events, `traceEvGoCreate` and `traceEvGoInSyscall`, in `runtime.StartTrace`, will make the trace parser happy.
Fixes #29707
Change-Id: I2fd9d1713cda22f0ddb36efe1ab351f88da10881
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| testdata | ||
| gc.go | ||
| gc_test.go | ||
| goroutines.go | ||
| mkcanned.bash | ||
| mud.go | ||
| mud_test.go | ||
| order.go | ||
| parser.go | ||
| parser_test.go | ||
| writer.go | ||