mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Do not support hpa if HUGEPAGE is too large.
This commit is contained in:
parent
4f4fd42447
commit
1c900088c3
1 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,10 @@ hpa_supported(void) {
|
|||
if (HUGEPAGE_PAGES == 1) {
|
||||
return false;
|
||||
}
|
||||
/* As mentioned in pages.h, do not support If HUGEPAGE is too large. */
|
||||
if (HUGEPAGE > HUGEPAGE_MAX_EXPECTED_SIZE) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue