cgocheck mode can be enabled using GOEXPERIMENT (which
requires a rebuild), see https://pkg.go.dev/internal/goexperiment for details.
+ dontfreezetheworld: by default, the start of a fatal panic or throw
+ "freezes the world", stopping all goroutines, which makes it possible
+ to traceback all goroutines (running goroutines cannot be traced), and
+ keeps their state close to the point of panic. Setting
+ dontfreezetheworld=1 disables freeze, allowing goroutines to continue
+ executing during panic processing. This can be useful when debugging
+ the runtime scheduler, as freezetheworld perturbs scheduler state and
+ thus may hide problems.
+
efence: setting efence=1 causes the allocator to run in a mode
where each object is allocated on a unique page and addresses are
never recycled.
var debug struct {
cgocheck int32
clobberfree int32
+ dontfreezetheworld int32
efence int32
gccheckmark int32
gcpacertrace int32
{name: "allocfreetrace", value: &debug.allocfreetrace},
{name: "clobberfree", value: &debug.clobberfree},
{name: "cgocheck", value: &debug.cgocheck},
+ {name: "dontfreezetheworld", value: &debug.dontfreezetheworld},
{name: "efence", value: &debug.efence},
{name: "gccheckmark", value: &debug.gccheckmark},
{name: "gcpacertrace", value: &debug.gcpacertrace},