From 5d05c7800e0dccf0f05b49c13ce5120e0d070e53 Mon Sep 17 00:00:00 2001 From: Jingcheng Zhang Date: Sun, 21 Oct 2012 20:32:43 -0400 Subject: [PATCH] runtime: sizeclass in MSpan should be int32. R=golang-dev, minux.ma, dave, rsc CC=golang-dev https://golang.org/cl/6643046 --- src/pkg/runtime/malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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