mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Remove the unnecessary arena_ind_set in base_alloc_edata().
All edata alloc sites are already followed with proper edata_init().
This commit is contained in:
parent
3093d9455e
commit
03d95cba88
2 changed files with 0 additions and 2 deletions
|
|
@ -476,7 +476,6 @@ base_alloc_edata(tsdn_t *tsdn, base_t *base) {
|
|||
if (edata == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
edata_arena_ind_set(edata, ehooks_ind_get(&base->ehooks));
|
||||
edata_esn_set(edata, esn);
|
||||
return edata;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -454,7 +454,6 @@ hpa_try_alloc_one_no_grow(tsdn_t *tsdn, hpa_shard_t *shard, size_t size,
|
|||
*oom = true;
|
||||
return NULL;
|
||||
}
|
||||
assert(edata_arena_ind_get(edata) == shard->ind);
|
||||
|
||||
hpdata_t *ps = psset_pick_alloc(&shard->psset, size);
|
||||
if (ps == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue