Fix large alloc nrequests under-counting on cache misses

This commit is contained in:
Slobodan Predolac 2026-03-27 13:30:58 -07:00
parent b05d0e8874
commit 0795a7cb72
2 changed files with 49 additions and 4 deletions

View file

@ -163,10 +163,10 @@ tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size,
assert(usize <= tcache_max_get(tcache->tcache_slow));
memset(ret, 0, usize);
}
}
if (config_stats) {
bin->tstats.nrequests++;
}
if (config_stats) {
bin->tstats.nrequests++;
}
return ret;