]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/base/debug.go
cmd/compile: restore zero-copy string->[]byte optimization
[gostls13.git] / src / cmd / compile / internal / base / debug.go
index 36a75ae8e502d3fa48f5c5c19b9b0ec4c193a434..3925fa7182ec8b6dd69b3e8379140009c4b55417 100644 (file)
@@ -24,6 +24,7 @@ type DebugFlags struct {
        DumpInlFuncProps      string `help:"dump function properties from inl heuristics to specified file"`
        DumpPtrs              int    `help:"show Node pointers values in dump output"`
        DwarfInl              int    `help:"print information about DWARF inlined function creation"`
+       EscapeMutationsCalls  int    `help:"print extra escape analysis diagnostics about mutations and calls" concurrent:"ok"`
        Export                int    `help:"print export data"`
        Fmahash               string `help:"hash value for use in debugging platform-dependent multiply-add use" concurrent:"ok"`
        GCAdjust              int    `help:"log adjustments to GOGC" concurrent:"ok"`
@@ -58,6 +59,7 @@ type DebugFlags struct {
        PGODevirtualize       int    `help:"enable profile-guided devirtualization" concurrent:"ok"`
        WrapGlobalMapDbg      int    `help:"debug trace output for global map init wrapping"`
        WrapGlobalMapCtl      int    `help:"global map init wrap control (0 => default, 1 => off, 2 => stress mode, no size cutoff)"`
+       ZeroCopy              int    `help:"enable zero-copy string->[]byte conversions" concurrent:"ok"`
 
        ConcurrentOk bool // true if only concurrentOk flags seen
 }