From 199bc0003d3a2444da604f0d073efc550632bae6 Mon Sep 17 00:00:00 2001
From: Austin Clements -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:
+ 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
--
2.52.0