mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
PA: Move in the ecache_t objects.
This commit is contained in:
committed by
David Goldblatt
parent
585f925055
commit
a24faed569
16
src/large.c
16
src/large.c
@@ -119,19 +119,19 @@ large_ralloc_no_move_expand(tsdn_t *tsdn, edata_t *edata, size_t usize,
|
||||
bool is_zeroed_trail = zero;
|
||||
edata_t *trail;
|
||||
bool new_mapping;
|
||||
if ((trail = ecache_alloc(tsdn, arena, ehooks, &arena->ecache_dirty,
|
||||
edata_past_get(edata), trailsize, CACHELINE, false, SC_NSIZES,
|
||||
&is_zeroed_trail)) != NULL
|
||||
|| (trail = ecache_alloc(tsdn, arena, ehooks, &arena->ecache_muzzy,
|
||||
edata_past_get(edata), trailsize, CACHELINE, false, SC_NSIZES,
|
||||
&is_zeroed_trail)) != NULL) {
|
||||
if ((trail = ecache_alloc(tsdn, arena, ehooks,
|
||||
&arena->pa_shard.ecache_dirty, edata_past_get(edata), trailsize,
|
||||
CACHELINE, false, SC_NSIZES, &is_zeroed_trail)) != NULL
|
||||
|| (trail = ecache_alloc(tsdn, arena, ehooks,
|
||||
&arena->pa_shard.ecache_muzzy, edata_past_get(edata), trailsize,
|
||||
CACHELINE, false, SC_NSIZES, &is_zeroed_trail)) != NULL) {
|
||||
if (config_stats) {
|
||||
new_mapping = false;
|
||||
}
|
||||
} else {
|
||||
if ((trail = ecache_alloc_grow(tsdn, arena, ehooks,
|
||||
&arena->ecache_retained, edata_past_get(edata), trailsize,
|
||||
CACHELINE, false, SC_NSIZES, &is_zeroed_trail))
|
||||
&arena->pa_shard.ecache_retained, edata_past_get(edata),
|
||||
trailsize, CACHELINE, false, SC_NSIZES, &is_zeroed_trail))
|
||||
== NULL) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user