dio...@gmail.com
unread,Oct 10, 2012, 10:22:33 PM10/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com, golan...@googlegroups.com, r...@golang.org, re...@codereview-hr.appspotmail.com
Reviewers:
golang-dev_googlegroups.com,
Message:
Hello
golan...@googlegroups.com (cc:
golan...@googlegroups.com,
r...@golang.org),
I'd like you to review this change to
https://code.google.com/p/go/
Description:
runtime: sizeclass in MSpan should be int32.
Please review this at
http://codereview.appspot.com/6643046/
Affected files:
M src/pkg/runtime/malloc.h
Index: src/pkg/runtime/malloc.h
===================================================================
--- a/src/pkg/runtime/malloc.h
+++ b/src/pkg/runtime/malloc.h
@@ -358,7 +358,7 @@
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