]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: handle Sync event at the beginning of the trace
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 3 Jun 2025 20:30:43 +0000 (20:30 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 4 Jun 2025 15:16:42 +0000 (08:16 -0700)
commitf537061e1b7599e97bafc0c8f9cc0bf686eb813e
tree4b2f2b7dc58659af03efe0db053f86ad987e16d6
parentd4bf7167935e84e7200e95649563d1368cf05331
cmd/trace: handle Sync event at the beginning of the trace

Currently the code assumes that there's no Sync event at the start of
the trace, but this hasn't been correct for some time. Count Syncs and
look for at least one instead of looking for zero.

Fixes #73962.

Change-Id: I2b4199a21c699c5b50b3d5add37dc46a515108c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/678555
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/trace/gen.go