mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Make huge_arena_ind static within the arena module (Follow up for PR #2904)
This commit is contained in:
parent
3a77966168
commit
9ae0c1b6d3
3 changed files with 8 additions and 4 deletions
|
|
@ -47,7 +47,7 @@ static unsigned nbins_total;
|
|||
* that, the huge_arena_ind is updated to point to the actual huge arena,
|
||||
* which is the last one of the auto arenas.
|
||||
*/
|
||||
unsigned huge_arena_ind = 0;
|
||||
static unsigned huge_arena_ind = 0;
|
||||
bool opt_huge_arena_pac_thp = false;
|
||||
pac_thp_t huge_arena_pac_thp = {.thp_madvise = false,
|
||||
.auto_thp_switched = false,
|
||||
|
|
@ -1978,6 +1978,11 @@ arena_init_huge(tsdn_t *tsdn, arena_t *a0) {
|
|||
return huge_enabled;
|
||||
}
|
||||
|
||||
bool
|
||||
arena_ind_is_huge(unsigned ind) {
|
||||
return huge_arena_ind != 0 && ind == huge_arena_ind;
|
||||
}
|
||||
|
||||
bool
|
||||
arena_boot(sc_data_t *sc_data, base_t *base, bool hpa) {
|
||||
arena_dirty_decay_ms_default_set(opt_dirty_decay_ms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue