From: Keith Randall Date: Tue, 30 May 2023 18:36:19 +0000 (-0700) Subject: doc: document change of cgocheck=2 from debug to experiment X-Git-Tag: go1.21rc1~177 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=2a129f3e8a0e3701e92fec0d7fde68d648e0cab9;p=gostls13.git 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 TryBot-Bypass: Keith Randall Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.21.html b/doc/go1.21.html index 5ea10032c8..085b81dbf7 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -748,7 +748,12 @@ Do not send CLs removing the interior tags from such phrases.

- TODO: https://go.dev/cl/447778: runtime: reimplement GODEBUG=cgocheck=2 as a GOEXPERIMENT + GODEBUG=cgocheck=2, a thorough checker of cgo pointer passing rules, + is no longer available as a debug option. + Instead, it is available as an experiment using GOEXPERIMENT=cgocheck2. + In particular this means that this mode has to be selected at build time instead of startup time. +

+ GODEBUG=cgocheck=1 is still available (and is still the default).