]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc: document change of cgocheck=2 from debug to experiment
authorKeith Randall <khr@golang.org>
Tue, 30 May 2023 18:36:19 +0000 (11:36 -0700)
committerKeith Randall <khr@golang.org>
Tue, 30 May 2023 22:15:34 +0000 (22:15 +0000)
Change-Id: I98bdfe8ab338a5b92c466a5aacfa95266171e5c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/499279
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Bypass: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/go1.21.html

index 5ea10032c85a614529974d5e01c2a015087f323b..085b81dbf7a0814e62d20579e02b4148b1408228 100644 (file)
@@ -748,7 +748,12 @@ Do not send CLs removing the interior tags from such phrases.
     </p>
 
     <p><!-- CL 447778 -->
-      TODO: <a href="https://go.dev/cl/447778">https://go.dev/cl/447778</a>: runtime: reimplement GODEBUG=cgocheck=2 as a GOEXPERIMENT
+      <code>GODEBUG=cgocheck=2</code>, a thorough checker of cgo pointer passing rules,
+      is no longer available as a <a href="/pkg/runtime#hdr-Environment_Variables">debug option</a>.
+      Instead, it is available as an experiment using <code>GOEXPERIMENT=cgocheck2</code>.
+      In particular this means that this mode has to be selected at build time instead of startup time.
+    <p>
+      <code>GODEBUG=cgocheck=1</code> is still available (and is still the default).
     </p>
 
     <p><!-- CL 472195 -->