mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-05 19:54:16 +03:00
Fix large alloc nrequests under-counting on cache misses
This commit is contained in:
parent
b05d0e8874
commit
0795a7cb72
2 changed files with 49 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue