aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/trace2runtime.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2024-03-07 13:51:04 -0500
committerRuss Cox <rsc@golang.org>2024-03-08 19:41:32 +0000
commite38be310a4f725ce9167b3444eedcd3b15a6e683 (patch)
tree0ae9558754824a1d6bc89d39231cf9d47d89a8d3 /src/runtime/trace2runtime.go
parente03e06d5601cf844c6dbd81269ddbea8b55ad7ab (diff)
downloadgo-e38be310a4f725ce9167b3444eedcd3b15a6e683.tar.xz
time: gracefully handle ts.zombies underflow
The current implementation sets t.ts before adding t to ts; that can cause inconsistencies with temporarily negative ts.zombies values. Handle them gracefully, since we only care about detecting very positive values. Pending CL 564977 removes the race that sets t.ts early, and then CL 569996 builds on top of that to make the count precise. This CL just gets examples like the new test working sooner. Change-Id: Ibe1aecc2554f83436f761f48e4050bd962982e4f Reviewed-on: https://go-review.googlesource.com/c/go/+/569995 Reviewed-by: Austin Clements <austin@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/trace2runtime.go')
0 files changed, 0 insertions, 0 deletions