Skip to content

Commit be393ac

Browse files
cuonglmpull[bot]
authored andcommitted
runtime: document GODEBUG panicnil values
Updates #25448 Change-Id: Ia1b7a376f5175f67e14ad4bd065d6e8ad5250d38 Reviewed-on: https://go-review.googlesource.com/c/go/+/536955 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Keith Randall <[email protected]>
1 parent f22dce2 commit be393ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/extern.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ It is a comma-separated list of name=val pairs setting these named variables:
152152
risk in that scenario. Currently not supported on Windows, plan9 or js/wasm. Setting this
153153
option for some applications can produce large traces, so use with care.
154154
155+
panicnil: setting panicnil=1 disables the runtime error when calling panic with nil
156+
interface value or an untyped nil.
157+
155158
runtimecontentionstacks: setting runtimecontentionstacks=1 enables inclusion of call stacks
156159
related to contention on runtime-internal locks in the "mutex" profile, subject to the
157160
MutexProfileFraction setting. When runtimecontentionstacks=0, contention on

0 commit comments

Comments
 (0)