]> Cypherpunks repositories - gostls13.git/commit
runtime: replace raw traceEv with traceBlockReason in gopark
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 17 May 2023 14:22:55 +0000 (14:22 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 19 May 2023 20:47:25 +0000 (20:47 +0000)
commit7c91e1e568fff5667419257d2654d5362dd89536
tree8e2659f086f4ec179123105d2ee918bf7a0f341c
parent656a20a52a51f4790ccddca5a7a1226993867e33
runtime: replace raw traceEv with traceBlockReason in gopark

This change adds traceBlockReason which leaks fewer implementation
details of the tracer to the runtime. Currently, gopark is called with
an explicit trace event, but this leaks details about trace internals
throughout the runtime.

This change will make it easier to change out the trace implementation.

Change-Id: Id633e1704d2c8838c6abd1214d9695537c4ac7db
Reviewed-on: https://go-review.googlesource.com/c/go/+/494185
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
15 files changed:
src/runtime/chan.go
src/runtime/debugcall.go
src/runtime/lock_js.go
src/runtime/mfinal.go
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/mgcscavenge.go
src/runtime/mgcsweep.go
src/runtime/netpoll.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/select.go
src/runtime/sema.go
src/runtime/time.go
src/runtime/trace.go