| 644 | } |
| 645 | |
| 646 | static size_t validate_alloc_alignment(size_t alignment) { |
| 647 | // Cannot perform allocations that are less than our minimal alignment, because |
| 648 | // the Region control structures need to be aligned themselves. |
| 649 | return MAX(alignment, MALLOC_ALIGNMENT); |
| 650 | } |
| 651 | |
| 652 | static size_t validate_alloc_size(size_t size) { |
| 653 | assert(size + REGION_HEADER_SIZE > size); |