diff options
| author | Rhys Hiltner <rhys.hiltner@gmail.com> | 2024-05-29 16:41:10 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-30 17:52:17 +0000 |
| commit | ca7d300509626e2071f3f5babc2e9c121d806fec (patch) | |
| tree | 97fb321d32c640f525ea4713bc04be9a676bf6c1 /src/runtime/runtime1.go | |
| parent | e6b8b2f3e236e8646962c68e172c304e11e9a8f0 (diff) | |
| download | go-ca7d300509626e2071f3f5babc2e9c121d806fec.tar.xz | |
Revert "runtime: remove GODEBUG=runtimecontentionstacks"
This reverts commit 87e930f7289136fad1310d4b63dd4127e409bac5 (CL 585639)
Reason for revert: This is part of a patch series that changed the
handling of contended lock2/unlock2 calls, reducing the maximum
throughput of contended runtime.mutex values, and causing a performance
regression on applications where that is (or became) the bottleneck.
Updates #66999
Updates #67585
Change-Id: I1e286d2a16d16e4af202cd5dc04b2d9c4ee71b32
Reviewed-on: https://go-review.googlesource.com/c/go/+/589097
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
Diffstat (limited to 'src/runtime/runtime1.go')
| -rw-r--r-- | src/runtime/runtime1.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index c74f6d2c72..03ef74b8dc 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -319,6 +319,7 @@ var debug struct { gctrace int32 invalidptr int32 madvdontneed int32 // for Linux; issue 28466 + runtimeContentionStacks atomic.Int32 scavtrace int32 scheddetail int32 schedtrace int32 @@ -380,6 +381,7 @@ var dbgvars = []*dbgVar{ {name: "madvdontneed", value: &debug.madvdontneed}, {name: "panicnil", atomic: &debug.panicnil}, {name: "profstackdepth", value: &debug.profstackdepth, def: 128}, + {name: "runtimecontentionstacks", atomic: &debug.runtimeContentionStacks}, {name: "sbrk", value: &debug.sbrk}, {name: "scavtrace", value: &debug.scavtrace}, {name: "scheddetail", value: &debug.scheddetail}, |
