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:
Qi Wang 2021-03-19 00:23:46 -07:00 committed by Qi Wang
parent 3093d9455e
commit 03d95cba88
2 changed files with 0 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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) {