Mercurial > repos > rhope
diff runtime/fixed_alloc.h @ 92:e73a93fb5de1
Beginning of port of compiler to itself, some bugfixes and a refcount optimization
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 02 Aug 2010 00:58:55 -0400 |
parents | 5a195ee08eac |
children | f4fd8962c385 |
line wrap: on
line diff
--- a/runtime/fixed_alloc.h Sat Jul 31 17:17:23 2010 -0400 +++ b/runtime/fixed_alloc.h Mon Aug 02 00:58:55 2010 -0400 @@ -28,7 +28,7 @@ //num_elements = (BLOCK_SIZE - sizeof(mem_block)+1)*8/(sizeof(element)*8+1) typedef struct { mem_block *freelist; - mem_block *inuse[(MAX_SIZE-MIN_SIZE)/STRIDE]; + mem_block *inuse[(MAX_SIZE-MIN_SIZE)/STRIDE+1]; uint32_t freecount; uint32_t fullcount; } mem_manager;