]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/go1.21.html
doc: document change of cgocheck=2 from debug to experiment
[gostls13.git] / 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 -->