mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +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
|
|
@ -823,7 +823,7 @@ extent_grow_retained(tsdn_t *tsdn, pac_t *pac, ehooks_t *ehooks, size_t size,
|
|||
|
||||
if (huge_arena_pac_thp.thp_madvise) {
|
||||
/* Avoid using HUGEPAGE when the grow size is less than HUGEPAGE. */
|
||||
if (ind != 0 && ind == huge_arena_ind
|
||||
if (arena_ind_is_huge(ind)
|
||||
&& ehooks_are_default(ehooks)
|
||||
&& likely(alloc_size >= HUGEPAGE)) {
|
||||
extent_handle_huge_arena_thp(tsdn, &huge_arena_pac_thp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue