[Bug dynamic-link/34348] FAIL: elf/tst-thp-1 if THP is disabled in kernel
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Wed Jul 15 11:26:37 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=34348
--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e03cefb56b748139def60d97eea805a4a303e91e
commit e03cefb56b748139def60d97eea805a4a303e91e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jul 4 08:17:05 2026 +0800
thp: Disable THP if THP isn't supported by kernel
Since DL_MAP_DEFAULT_THP_PAGESIZE is defined for x86-64, THP control
is to set to madvise by default. If THP is disabled in x86-64 kernel,
madvise (..., MADV_HUGEPAGE) returns -EINVAL to indicate that THP isn't
supported. Add _dl_thp_madvise to disable THP in this case. This
fixes BZ #34348.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list