1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:24:47 -07:00

runtime: clarify wording/grammar on GODEBUG=invalidptr

Change-Id: Ia06b6be262922991bae3528e7b061d1db9e4c3c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/236679
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
Brad Fitzpatrick 2020-06-05 08:32:41 -07:00
parent 325540922a
commit 3c35eec618

View File

@ -87,7 +87,7 @@ It is a comma-separated list of name=val pairs setting these named variables:
When set to 0 memory profiling is disabled. Refer to the description of
MemProfileRate for the default value.
invalidptr: defaults to invalidptr=1, causing the garbage collector and stack
invalidptr: invalidptr=1 (the default) causes the garbage collector and stack
copier to crash the program if an invalid pointer value (for example, 1)
is found in a pointer-typed location. Setting invalidptr=0 disables this check.
This should only be used as a temporary workaround to diagnose buggy code.