runtime: make gc and scheduler asserts settable with build tags

This commit is contained in:
Damian Gryski
2022-09-21 10:14:25 -07:00
committed by Ron Evans
parent 107b1c2906
commit fca2de21b1
5 changed files with 19 additions and 9 deletions
-2
View File
@@ -11,8 +11,6 @@ import (
"unsafe"
)
const gcAsserts = false // perform sanity checks
var gcTotalAlloc uint64 // for runtime.MemStats
var gcMallocs uint64
var gcFrees uint64