Skip to content

runtime: trace2: GoStatus at end of generation uses m.id while other events use m.procid #65196

@dominikh

Description

@dominikh

When emitting GoStatus events for goroutines that didn't have any activity in a generation, we use m.id to set the event's M

ug.mid = s.g.m.id

but for all other events with an M we use m.procid instead, for example

mID = uint64(w.mp.procid)

w = w.writeGoStatus(uint64(gp.goid), int64(tl.mp.procid), goStatus, gp.inMarkAssist)

This affects the M reported for goroutines that are already in syscalls when tracing begins.

/cc @mknyszek

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions