From: Brad Fitzpatrick Date: Fri, 5 Jun 2020 15:32:41 +0000 (-0700) Subject: runtime: clarify wording/grammar on GODEBUG=invalidptr X-Git-Tag: go1.15beta1~31 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3c35eec6184fba625e0c3207c05694f4020131a1;p=gostls13.git runtime: clarify wording/grammar on GODEBUG=invalidptr Change-Id: Ia06b6be262922991bae3528e7b061d1db9e4c3c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/236679 Reviewed-by: Austin Clements --- diff --git a/src/runtime/extern.go b/src/runtime/extern.go index 4fa21f0a35..7316503ed2 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -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.