PA: have expand take sizes instead of new usize.
This avoids involving usize, which makes some of the stats modifications more intuitively correct.
This commit is contained in:
committed by
David Goldblatt
parent
5bcc2c2ab9
commit
74958567a4
@@ -122,8 +122,7 @@ 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);
|
||||
/* 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,
|
||||
szind_t szind, bool slab, bool *zero, size_t *mapped_add);
|
||||
bool pa_expand(tsdn_t *tsdn, pa_shard_t *shard, edata_t *edata, size_t old_size,
|
||||
size_t new_size, szind_t szind, bool slab, bool *zero, size_t *mapped_add);
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_PA_H */
|
||||
|
Reference in New Issue
Block a user