1
0
mirror of https://github.com/golang/go synced 2024-11-19 23:04:40 -07:00

runtime: sizeclass in MSpan should be int32.

R=golang-dev, minux.ma, dave, rsc
CC=golang-dev
https://golang.org/cl/6643046
This commit is contained in:
Jingcheng Zhang 2012-10-21 20:32:43 -04:00 committed by Russ Cox
parent 0cfbb64c43
commit 5d05c7800e

View File

@ -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