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
@ -476,7 +476,6 @@ base_alloc_edata(tsdn_t *tsdn, base_t *base) {
|
|||||||
if (edata == NULL) {
|
if (edata == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
edata_arena_ind_set(edata, ehooks_ind_get(&base->ehooks));
|
|
||||||
edata_esn_set(edata, esn);
|
edata_esn_set(edata, esn);
|
||||||
return edata;
|
return edata;
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,6 @@ hpa_try_alloc_one_no_grow(tsdn_t *tsdn, hpa_shard_t *shard, size_t size,
|
|||||||
*oom = true;
|
*oom = true;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
assert(edata_arena_ind_get(edata) == shard->ind);
|
|
||||||
|
|
||||||
hpdata_t *ps = psset_pick_alloc(&shard->psset, size);
|
hpdata_t *ps = psset_pick_alloc(&shard->psset, size);
|
||||||
if (ps == NULL) {
|
if (ps == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user