Last-Update: 2024-05-10
Gbp-Pq: Name 0100-onetbb-fix-testcases-failed-for-loongarch64.patch
/*
* Default huge page size
*/
+#if defined __loongarch64
+static const size_t HUGE_PAGE_SIZE = 32 * 1024 * 1024;
+#else
static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024;
+#endif
/********** End of global default constants *********/
scalable_allocation_mode(USE_HUGE_PAGES, 1);
REQUIRE_MESSAGE(hugePages.isEnabled, "Huge pages should be enabled via scalable_allocation_mode");
+#if defined __loongarch64
+ const int HUGE_PAGE_SIZE = 32 * 1024 * 1024;
+#else
const int HUGE_PAGE_SIZE = 2 * 1024 * 1024;
+#endif
// allocCount transparent huge pages should be allocated
const int allocCount = 10;