mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 06:13:13 +00:00
Do not support hpa if HUGEPAGE is too large.
This commit is contained in:
@@ -51,6 +51,10 @@ hpa_supported(void) {
|
|||||||
if (HUGEPAGE_PAGES == 1) {
|
if (HUGEPAGE_PAGES == 1) {
|
||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user