From: Cuong Manh Le Date: Mon, 23 Oct 2023 03:56:57 +0000 (+0700) Subject: runtime: document GODEBUG panicnil values X-Git-Tag: go1.22rc2~7^2~4 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73eff89d0766718c72eea7e54e49d65bd96edc59;p=gostls13.git runtime: document GODEBUG panicnil values Updates #25448 Change-Id: Ia1b7a376f5175f67e14ad4bd065d6e8ad5250d38 Reviewed-on: https://go-review.googlesource.com/c/go/+/536955 Reviewed-by: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Carlos Amedee LUCI-TryBot-Result: Go LUCI Auto-Submit: Keith Randall --- 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