diff options
| author | Daniel Morsing <daniel.morsing@gmail.com> | 2025-11-27 14:49:09 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-02-27 12:41:12 -0800 |
| commit | 62a1da372a2bfeb29644246ff0f61dc048bb912c (patch) | |
| tree | 8aa901636e926591fbac77afd575e61b9c1d6dba /src/cmd | |
| parent | 6a712954669bc9cdbf748be5b2b6613af41a2675 (diff) | |
| download | go-62a1da372a2bfeb29644246ff0f61dc048bb912c.tar.xz | |
runtime: do signal stack clearing when parking Ms
Clearing signal stacks during STW meant an added latency that was linear
with respect to the number of Ms, parked or running. Since that number
be quite high, we need an alternate scheme.
Instead of clearing in the GC cycle, clear the signal stack whenever an
M is parked and has the potential to stay parked until the end of the
next GC cycle. This implements the wanted behavior for runtime/secret at
the cost of a little bit of extra latency that will be dwarfed by the
time it takes to perform a syscall.
Change-Id: Ieb9618f46736c34486e17a3d6185661a98756d0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/724282
Auto-Submit: Daniel Morsing <daniel.morsing@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/cmd')
0 files changed, 0 insertions, 0 deletions
