diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index 9c691c6887f..d17363261e2 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -141,19 +141,19 @@ var mheap_ mheap type mSpanState uint8 const ( - _MSpanInUse mSpanState = iota // allocated for garbage collected heap - _MSpanStack // allocated for use by stack allocator + _MSpanDead mSpanState = iota + _MSpanInUse // allocated for garbage collected heap + _MSpanStack // allocated for use by stack allocator _MSpanFree - _MSpanDead ) // mSpanStateNames are the names of the span states, indexed by // mSpanState. var mSpanStateNames = []string{ + "_MSpanDead", "_MSpanInUse", "_MSpanStack", "_MSpanFree", - "_MSpanDead", } // mSpanList heads a linked list of spans.