mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-20 03:46:21 +03:00
PA: Have large expands use it.
This commit is contained in:
parent
7be3dea82c
commit
0880c2ab97
3 changed files with 57 additions and 43 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue