PA: Have large expands use it.

This commit is contained in:
David Goldblatt
2020-03-10 14:38:55 -07:00
committed by David Goldblatt
parent 7be3dea82c
commit 0880c2ab97
3 changed files with 57 additions and 43 deletions

View File

@@ -119,7 +119,10 @@ bool pa_shard_init(tsdn_t *tsdn, pa_shard_t *shard, base_t *base, unsigned ind,
pa_shard_stats_t *stats, malloc_mutex_t *stats_mtx);
size_t pa_shard_extent_sn_next(pa_shard_t *shard);
edata_t *
pa_alloc(tsdn_t *tsdn, pa_shard_t *shard, size_t size, size_t alignment,
bool slab, szind_t szind, bool *zero, size_t *mapped_add);
edata_t *pa_alloc(tsdn_t *tsdn, pa_shard_t *shard, size_t size,
size_t alignment, bool slab, szind_t szind, bool *zero, size_t *mapped_add);
/* Returns true on error, in which case nothing changed. */
bool pa_expand(tsdn_t *tsdn, pa_shard_t *shard, edata_t *edata,
size_t new_usize, bool *zero, size_t *mapped_add);
#endif /* JEMALLOC_INTERNAL_PA_H */