]> Cypherpunks repositories - gostls13.git/commit
runtime: disable trace v2 optimistic deadlock debugger
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 21 Nov 2023 16:59:44 +0000 (16:59 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 21 Nov 2023 22:29:59 +0000 (22:29 +0000)
commit74993bffe1a5c7e28f43423f9925bf9f6ec17aad
tree0c6e227d4317abbbfab2c8c77cff179a2a33aed3
parentb6b72c775ab562c632abf5d93e8c541385edfffc
runtime: disable trace v2 optimistic deadlock debugger

The v2 execution tracer has a rudimentary deadlock detector, but it's
based on an arbitrary threshold that an actually get hit even if there's
no deadlock. This ends up breaking tests sometimes, and it would be bad
if this just appeared in production logs.

Put this 'deadlock detector' behind a flag.

For #55317.

Change-Id: I286f0c05b3ac9600f4f2f9696065cac8bbd25f00
Reviewed-on: https://go-review.googlesource.com/c/go/+/544235
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/trace2.go