From 910f370482c989bd6a92b7b6b229a40c863ebdd6 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 16 Oct 2013 09:17:44 +0900 Subject: [PATCH] [gc] base header size is 1, not 0 --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index 160e1996..a486d905 100644 --- a/src/gc.c +++ b/src/gc.c @@ -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;