]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: capture per-g trace state in a type
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 10 May 2023 20:12:35 +0000 (20:12 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 17 May 2023 14:45:40 +0000 (14:45 +0000)
commitc213c905a29b3bce31b99ae91326bbaea106cc16
treee2b591dc517c2eaf600ea03784986c1d80c81e6a
parent1bb2f73237f8375d364564c4bb2c2ab16a31da87
runtime: capture per-g trace state in a type

More tightening up of the tracer's interface.

This increases the size of each G very slightly, which isn't great, but
we stay within the same size class, so actually memory use will be
unchanged.

Change-Id: I7d1f5798edcf437c212beb1e1a2619eab833aafb
Reviewed-on: https://go-review.googlesource.com/c/go/+/494188
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/sizeof_test.go
src/runtime/trace.go