]> Cypherpunks repositories - gostls13.git/commit
runtime: make profstackdepth a GODEBUG option
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Sat, 27 Apr 2024 11:41:05 +0000 (13:41 +0200)
committerAustin Clements <austin@google.com>
Tue, 21 May 2024 14:38:56 +0000 (14:38 +0000)
commit66cc2b7ca760d62294584d6680df65892cf7a8cf
tree829a235416aa5419b89ab6c96ebef0211fa3fd00
parent1b9dc3e178be578cf1d8c06fe371283a58bdd93f
runtime: make profstackdepth a GODEBUG option

Allow users to decrease the profiling stack depth back to 32 in case
they experience any problems with the new default of 128.

Users may also use this option to increase the depth up to 1024.

Change-Id: Ieaab2513024915a223239278dd97a6e161dde1cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/581917
Reviewed-by: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/extern.go
src/runtime/mprof.go
src/runtime/proc.go
src/runtime/runtime1.go
src/runtime/tracestack.go