From: Jingcheng Zhang Date: Mon, 22 Oct 2012 00:32:43 +0000 (-0400) Subject: runtime: sizeclass in MSpan should be int32. X-Git-Tag: go1.1rc2~2079 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5d05c7800e0dccf0f05b49c13ce5120e0d070e53;p=gostls13.git runtime: sizeclass in MSpan should be int32. R=golang-dev, minux.ma, dave, rsc CC=golang-dev https://golang.org/cl/6643046 --- diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index ac3cfa8d6a..e221faae37 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -358,7 +358,7 @@ struct MSpan uintptr npages; // number of pages in span MLink *freelist; // list of free objects uint32 ref; // number of allocated objects in this span - uint32 sizeclass; // size class + int32 sizeclass; // size class uintptr elemsize; // computed from sizeclass or from npages uint32 state; // MSpanInUse etc int64 unusedsince; // First time spotted by GC in MSpanFree state