Skip to content
Commit 0f982c18 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

malloc: Enable huge page support on main arena



This patch adds support huge page support on main arena allocation,
enable with tunable glibc.malloc.hugetlb=2.  The patch essentially
disable the __glibc_morecore() sbrk() call (similar when memory
tag does when sbrk() call does not support it) and fallback to
default page size if the memory allocation fails.

Checked on x86_64-linux-gnu.

Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
parent 0849eed4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment