Skip to content

Commit 5d05c78

Browse files
dioginrsc
authored andcommitted
runtime: sizeclass in MSpan should be int32.
R=golang-dev, minux.ma, dave, rsc CC=golang-dev https://golang.org/cl/6643046
1 parent 0cfbb64 commit 5d05c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkg/runtime/malloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ struct MSpan
358358
uintptr npages; // number of pages in span
359359
MLink *freelist; // list of free objects
360360
uint32 ref; // number of allocated objects in this span
361-
uint32 sizeclass; // size class
361+
int32 sizeclass; // size class
362362
uintptr elemsize; // computed from sizeclass or from npages
363363
uint32 state; // MSpanInUse etc
364364
int64 unusedsince; // First time spotted by GC in MSpanFree state

0 commit comments

Comments
 (0)