mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-10 15:57:24 +03:00
Refactor ctl_stats_t.
Refactor ctl_stats_t to be a demand-zeroed non-growing data structure. To keep the size from being onerous (~60 MiB) on 32-bit systems, convert the arenas field to contain pointers rather than directly embedded ctl_arena_stats_t elements.
This commit is contained in:
parent
0f04bb1d6f
commit
d778dd2afc
3 changed files with 107 additions and 67 deletions
|
|
@ -61,7 +61,7 @@ struct ctl_stats_s {
|
|||
size_t mapped;
|
||||
size_t retained;
|
||||
unsigned narenas;
|
||||
ctl_arena_stats_t *arenas; /* (narenas + 1) elements. */
|
||||
ctl_arena_stats_t *arenas[1 << MALLOCX_ARENA_BITS];
|
||||
};
|
||||
|
||||
#endif /* JEMALLOC_H_STRUCTS */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue