mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-04 03:04:16 +03:00
Tell edatas their creation arena immediately.
This avoids having to pass it in anywhere else.
This commit is contained in:
parent
7c7b702064
commit
040eac77cc
4 changed files with 5 additions and 4 deletions
|
|
@ -468,6 +468,7 @@ 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue