diff options
author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2023-10-23 10:56:57 +0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-01-17 20:18:41 +0000 |
commit | 73eff89d0766718c72eea7e54e49d65bd96edc59 (patch) | |
tree | 21d9792b7892c4740be0890b8291dfaaed7369ca | |
parent | 92d7169a36709a689736c893994b42938d3270e7 (diff) | |
download | go-73eff89d0766718c72eea7e54e49d65bd96edc59.tar.gz go-73eff89d0766718c72eea7e54e49d65bd96edc59.zip |
runtime: document GODEBUG panicnil values
Updates #25448
Change-Id: Ia1b7a376f5175f67e14ad4bd065d6e8ad5250d38
Reviewed-on: https://go-review.googlesource.com/c/go/+/536955
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
-rw-r--r-- | src/runtime/extern.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go index 4b3ae63fb5..e42122fd3a 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -152,6 +152,9 @@ It is a comma-separated list of name=val pairs setting these named variables: risk in that scenario. Currently not supported on Windows, plan9 or js/wasm. Setting this option for some applications can produce large traces, so use with care. + panicnil: setting panicnil=1 disables the runtime error when calling panic with nil + interface value or an untyped nil. + runtimecontentionstacks: setting runtimecontentionstacks=1 enables inclusion of call stacks related to contention on runtime-internal locks in the "mutex" profile, subject to the MutexProfileFraction setting. When runtimecontentionstacks=0, contention on |