| 208 | } |
| 209 | |
| 210 | static void *alloc(int len, struct memory_type *type) |
| 211 | { |
| 212 | hdrtype_t volatile *ptr = find_free_block(len, type); |
| 213 | |
| 214 | if (ptr == NULL) |
| 215 | return NULL; |
| 216 | |
| 217 | use_block(ptr, len); |
| 218 | return (void *)((uintptr_t)ptr + HDRSIZE); |
| 219 | } |
| 220 | |
| 221 | static void _consolidate(struct memory_type *type) |
| 222 | { |
no test coverage detected