Remove commit parameter to ecache functions.

No caller ever wants uncommitted memory.
This commit is contained in:
David Goldblatt
2020-01-16 13:28:27 -08:00
committed by David Goldblatt
parent b8df719d5c
commit bd3be8e0b1
4 changed files with 19 additions and 23 deletions

View File

@@ -147,22 +147,21 @@ large_ralloc_no_move_expand(tsdn_t *tsdn, edata_t *edata, size_t usize,
* false.
*/
bool is_zeroed_trail = zero;
bool commit = true;
edata_t *trail;
bool new_mapping;
if ((trail = ecache_alloc(tsdn, arena, ehooks, &arena->ecache_dirty,
edata_past_get(edata), trailsize, 0, CACHELINE, false, SC_NSIZES,
&is_zeroed_trail, &commit)) != NULL
&is_zeroed_trail)) != NULL
|| (trail = ecache_alloc(tsdn, arena, ehooks, &arena->ecache_muzzy,
edata_past_get(edata), trailsize, 0, CACHELINE, false, SC_NSIZES,
&is_zeroed_trail, &commit)) != NULL) {
&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,
0, CACHELINE, false, SC_NSIZES, &is_zeroed_trail, &commit))
0, CACHELINE, false, SC_NSIZES, &is_zeroed_trail))
== NULL) {
return true;
}