Use smaller datatype for ttl

This commit is contained in:
Justin Ethier 2021-08-17 07:42:39 -04:00
parent 556146ae8f
commit 227861cb2e

View file

@ -225,7 +225,7 @@ struct gc_heap_t {
/** Size of the heap page in bytes */
unsigned int size;
/** Keep empty page alive this many times before freeing */
unsigned int ttl;
unsigned char ttl;
/** Bump: Track remaining space; this is useful for bump&pop style allocation */
unsigned int remaining;
/** For fixed-size heaps, only allocate blocks of this size */