* base_alloc() returns zeroed memory, which is always demand-zeroed for the * auto arenas, in order to make multi-page sparse data structures such as radix * tree nodes efficient with respect to physical memory usage. Upon success a * pointer to at least size bytes with specified alignment is returned. Note * that size is rounded up to the nearest multiple of alignment to avoid false * shar
| 461 | * sharing. |
| 462 | */ |
| 463 | void * |
| 464 | base_alloc(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment) { |
| 465 | return base_alloc_impl(tsdn, base, size, alignment, NULL); |
| 466 | } |
| 467 | |
| 468 | extent_t * |
| 469 | base_alloc_extent(tsdn_t *tsdn, base_t *base) { |