mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
Extent: Stop passing an edata_cache everywhere.
We already pass the pa_shard_t around everywhere; we can just use that.
This commit is contained in:
committed by
David Goldblatt
parent
a4759a1911
commit
93b99dd140
8
src/pa.c
8
src/pa.c
@@ -175,8 +175,7 @@ pa_expand(tsdn_t *tsdn, pa_shard_t *shard, edata_t *edata, size_t old_size,
|
||||
if (trail == NULL) {
|
||||
return true;
|
||||
}
|
||||
if (extent_merge_wrapper(tsdn, shard, ehooks, &shard->edata_cache,
|
||||
edata, trail)) {
|
||||
if (extent_merge_wrapper(tsdn, shard, ehooks, edata, trail)) {
|
||||
extent_dalloc_wrapper(tsdn, shard, ehooks, trail);
|
||||
return true;
|
||||
}
|
||||
@@ -205,9 +204,8 @@ pa_shrink(tsdn_t *tsdn, pa_shard_t *shard, edata_t *edata, size_t old_size,
|
||||
return true;
|
||||
}
|
||||
|
||||
edata_t *trail = extent_split_wrapper(tsdn, shard, &shard->edata_cache,
|
||||
ehooks, edata, new_size, szind, slab, shrink_amount, SC_NSIZES,
|
||||
false);
|
||||
edata_t *trail = extent_split_wrapper(tsdn, shard, ehooks, edata,
|
||||
new_size, szind, slab, shrink_amount, SC_NSIZES, false);
|
||||
if (trail == NULL) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user