Allocator type for GC vectors. This is for vectors of types
atomics w.r.t. collection, so allocation and deallocation is
completely inherited from va_gc.
template<typename
T , typename A >
void va_gc::reserve |
( |
vec< T, A, vl_embed > *& | v, |
|
|
unsigned | reserve, |
|
|
bool exact | MEM_STAT_DECL ) |
|
inherited |
Allocator for GC memory. Ensure there are at least RESERVE free
slots in V. If EXACT is true, grow exactly, else grow
exponentially. As a special case, if the vector had not been
allocated and RESERVE is 0, no vector will be created.
References vec_prefix::calculate_allocation(), ggc_free(), ggc_realloc(), ggc_round_alloc_size(), NULL, PASS_MEM_STAT, va_gc::reserve(), and T.