]> Cypherpunks repositories - gostls13.git/commit
runtime: don't use trace.lock for trace reader parking
authorAustin Clements <austin@google.com>
Thu, 21 Jul 2022 18:54:34 +0000 (14:54 -0400)
committerAustin Clements <austin@google.com>
Thu, 11 Aug 2022 20:16:33 +0000 (20:16 +0000)
commit9923162f1cb88295bccb4d86ccc6829931199fdf
tree2e73d17a14402c4404b962f8bb39c45821fa850b
parentb648591b705490d14147f3beb66c68be9a97c5b5
runtime: don't use trace.lock for trace reader parking

We're about to require that all uses of trace.lock be on the system
stack. That's mostly easy, except that it's involving parking the
trace reader. Fix this by changing that parking protocol so it instead
synchronizes through an atomic.

For #53979.

Change-Id: Icd6db8678dd01094029d7ad1c612029f571b4cbb
Reviewed-on: https://go-review.googlesource.com/c/go/+/418955
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/proc.go
src/runtime/trace.go