mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-22 10:52:12 +03:00
Clarify relationship between stats.resident and stats.mapped.
This commit is contained in:
parent
09983d2f54
commit
56048baeb4
3 changed files with 15 additions and 7 deletions
|
|
@ -132,6 +132,8 @@ base_stats_get(size_t *allocated, size_t *resident, size_t *mapped)
|
|||
{
|
||||
|
||||
malloc_mutex_lock(&base_mtx);
|
||||
assert(base_allocated <= base_resident);
|
||||
assert(base_resident <= base_mapped);
|
||||
*allocated = base_allocated;
|
||||
*resident = base_resident;
|
||||
*mapped = base_mapped;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue