aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-01-13 09:55:24 -0800
committerIan Lance Taylor <iant@golang.org>2009-01-13 09:55:24 -0800
commit9b8da82d72fa41452c6640fce33a80414f48cfca (patch)
treec11f6718c83d005ee464dce9e9b9428d01a7544d /src/runtime/malloc.h
parentba556a881811ed6b619037783fe9f4b5dc3c142f (diff)
downloadgo-9b8da82d72fa41452c6640fce33a80414f48cfca.tar.xz
Tweak code to make it easier to compile with gcc.
+ Use macros to name symbols with non-ASCII characters. + Make some variables unsigned, because they are compared against unsigned values. + Fix a few void* pointers to be MLink*. R=rsc DELTA=94 (44 added, 3 deleted, 47 changed) OCL=22303 CL=22638
Diffstat (limited to 'src/runtime/malloc.h')
-rw-r--r--src/runtime/malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h
index 5d2916af12..8b4d76919a 100644
--- a/src/runtime/malloc.h
+++ b/src/runtime/malloc.h
@@ -208,7 +208,7 @@ struct MSpan
MSpan *prev; // in a span linked list
PageID start; // starting page number
uintptr npages; // number of pages in span
- void *freelist; // list of free objects
+ MLink *freelist; // list of free objects
uint32 ref; // number of allocated objects in this span
uint32 sizeclass; // size class
uint32 state; // MSpanInUse or MSpanFree