From: Austin Clements
Date: Thu, 9 Jan 2020 17:44:52 +0000 (-0500)
Subject: doc/go1.14: -d=checkptr is not yet recommended on Windows
X-Git-Tag: go1.14rc1~135
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=199bc0003d3a2444da604f0d073efc550632bae6;p=gostls13.git
doc/go1.14: -d=checkptr is not yet recommended on Windows
Hopefully we'll have the remaining safety violations in the standard
library ironed out by 1.15.
We also fix a minor (but important) typo while we're here.
Updates #34964, #34972.
Change-Id: Ic72fd4d9411b749f8c0cea87e95ab68347009893
Reviewed-on: https://go-review.googlesource.com/c/go/+/214118
Reviewed-by: Brad Fitzpatrick
---
diff --git a/doc/go1.14.html b/doc/go1.14.html
index 6811868bc2..87d2fac1aa 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -301,9 +301,9 @@ TODO
This release adds -d=checkptr
as a compile-time option
for adding instrumentation to check that Go code is following
unsafe.Pointer
safety rules dynamically.
- This option is enabled by default with the -race
- or -msan
flags, and can be disabled
- with -gcflags=-all=-d=checkptr=0
.
+ This option is enabled by default (except on Windows) with
+ the -race
or -msan
flags, and can be
+ disabled with -gcflags=all=-d=checkptr=0
.
Specifically, -d=checkptr
checks the following:
@@ -320,6 +320,11 @@ TODO
+
+ Using -d=checkptr
is not currently recommended on
+ Windows because it causes false alerts in the standard library.
+
+
The compiler can now emit machine-readable logs of key optimizations
using the -json
flag, including inlining, escape