]> Cypherpunks repositories - gostls13.git/commit
runtime: create wrappers for gcDrain to identify time in profiles
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 21 Aug 2023 22:29:11 +0000 (22:29 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 23 Aug 2023 15:49:39 +0000 (15:49 +0000)
commit081d27a2e5786b2e02cbe4bc9067c6d52ccad44c
treebe94f6b086a14452b3e5a1d24aa9228b24408f4a
parente68c027204d410ebca5bf1a9660605f2bd737748
runtime: create wrappers for gcDrain to identify time in profiles

Currently it's impossible to identify in profiles where gcDrain-related
time is coming from. More specifically, what kind of worker. Create
trivial wrappers for each worker so that the difference shows up in
stack traces.

Also, clarify why gcDrain disables write barriers.

Change-Id: I966e3c0b1c583994e691f486bf0ed8cabb91dbbb
Reviewed-on: https://go-review.googlesource.com/c/go/+/521815
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mgc.go
src/runtime/mgcmark.go