5 Arena::Arena() : first(NULL) {}
10 for (Block *b = first; b != NULL; b = next) {
18 char *Arena::alloc(size_t bytes)
20 assert(bytes < BLOCK_SIZE); // Can fix, but we don't need to.
22 if (first == NULL || first->used + bytes > BLOCK_SIZE) {
24 b->memory = new char[BLOCK_SIZE];
30 char *ret = first->memory + first->used;