X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime1.go;h=489dcdd79ca4bf7eb8636296645b5eecb5e9e5bc;hb=43ffe2a89230553efc9fc915e944b91438d9f1fd;hp=92a7e021ee23b5728a539eb8f2b2f9b88a38a799;hpb=f7c5cbb82087c55aa82081e931e0142783700ce8;p=gostls13.git diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index 92a7e021ee..489dcdd79c 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -326,6 +326,7 @@ var debug struct { harddecommit int32 adaptivestackstart int32 tracefpunwindoff int32 + traceadvanceperiod int32 // debug.malloc is used as a combined debug check // in the malloc function and should be set @@ -362,6 +363,7 @@ var dbgvars = []*dbgVar{ {name: "adaptivestackstart", value: &debug.adaptivestackstart}, {name: "tracefpunwindoff", value: &debug.tracefpunwindoff}, {name: "panicnil", atomic: &debug.panicnil}, + {name: "traceadvanceperiod", value: &debug.traceadvanceperiod}, } func parsedebugvars() { @@ -380,6 +382,7 @@ func parsedebugvars() { // Hence, default to MADV_DONTNEED. debug.madvdontneed = 1 } + debug.traceadvanceperiod = defaultTraceAdvancePeriod godebug := gogetenv("GODEBUG")