mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-06 02:16:14 +03:00
edata_cache: Remember the associated base_t.
This will save us some trouble down the line when we stop passing arena pointers everywhere; we won't have to pass around a base_t pointer either.
This commit is contained in:
parent
ae23e5f426
commit
c792f3e4ab
5 changed files with 20 additions and 16 deletions
|
|
@ -123,7 +123,7 @@ extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
gap = edata_cache_get(tsdn, &arena->edata_cache, arena->base);
|
||||
gap = edata_cache_get(tsdn, &arena->edata_cache);
|
||||
if (gap == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue