mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
PA: Have expand take szind and slab.
This isn't really necessary, but having a uniform API will help us later.
This commit is contained in:
parent
0880c2ab97
commit
5bcc2c2ab9
3 changed files with 7 additions and 6 deletions
|
|
@ -115,8 +115,9 @@ large_ralloc_no_move_expand(tsdn_t *tsdn, edata_t *edata, size_t usize,
|
|||
*/
|
||||
bool is_zeroed_trail = zero;
|
||||
size_t mapped_add;
|
||||
szind_t szind = sz_size2index(usize);
|
||||
bool err = pa_expand(tsdn, &arena->pa_shard, edata, usize,
|
||||
&is_zeroed_trail, &mapped_add);
|
||||
szind, /* slab */ false, &is_zeroed_trail, &mapped_add);
|
||||
if (err) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue