[gc] base header size is 1, not 0

This commit is contained in:
Yuichi Nishiwaki
2013-10-16 09:17:44 +09:00
parent 22abdae12a
commit 910f370482
+1 -1
View File
@@ -20,7 +20,7 @@ init_heap_page(struct heap_page *heap)
heap->base = base = (union header *)
(((unsigned long)p + sizeof(union header) -1) & ~(sizeof(union header) - 1));
base->s.ptr = base + 1;
base->s.size = 0;
base->s.size = 1;
heap->freep = freep = base->s.ptr;
freep->s.ptr = base;