Skip to content

Commit 2a129f3

Browse files
committed
doc: document change of cgocheck=2 from debug to experiment
Change-Id: I98bdfe8ab338a5b92c466a5aacfa95266171e5c3 Reviewed-on: https://go-review.googlesource.com/c/go/+/499279 Reviewed-by: Keith Randall <[email protected]> TryBot-Bypass: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 4497b12 commit 2a129f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/go1.21.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,12 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
748748
</p>
749749

750750
<p><!-- CL 447778 -->
751-
TODO: <a href="https://go.dev/cl/447778">https://go.dev/cl/447778</a>: runtime: reimplement GODEBUG=cgocheck=2 as a GOEXPERIMENT
751+
<code>GODEBUG=cgocheck=2</code>, a thorough checker of cgo pointer passing rules,
752+
is no longer available as a <a href="/pkg/runtime#hdr-Environment_Variables">debug option</a>.
753+
Instead, it is available as an experiment using <code>GOEXPERIMENT=cgocheck2</code>.
754+
In particular this means that this mode has to be selected at build time instead of startup time.
755+
<p>
756+
<code>GODEBUG=cgocheck=1</code> is still available (and is still the default).
752757
</p>
753758

754759
<p><!-- CL 472195 -->

0 commit comments

Comments
 (0)