From 5cd500e381dd5587a1ee272156df56cbe2642ff5 Mon Sep 17 00:00:00 2001 From: GoldJohnKing Date: Tue, 3 Jan 2023 10:56:35 +0800 Subject: [PATCH] fix: remove CMA_RESERVE_OS_MEMORY variant as it is not functional at all --- src/cma/cma_utils.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cma/cma_utils.cpp b/src/cma/cma_utils.cpp index fd3d4dbdc..4b062bae7 100644 --- a/src/cma/cma_utils.cpp +++ b/src/cma/cma_utils.cpp @@ -46,9 +46,6 @@ void CmaSetMemoryAllocatorRuntimeOptions(void) if (mi_option_is_enabled(mi_option_large_os_pages)) mi_option_set(mi_option_reserve_huge_os_pages, CmaGetReservedHugePagesCount()); #endif CMA_LOCK_PAGES -#ifdef CMA_RESERVE_OS_MEMORY // Reserve os memory on CMA_RESERVE_OS_MEMORY build variant - mi_option_set(mi_option_reserve_os_memory, CmaGetReservedOsMemorySize()); -#endif CMA_RESERVE_OS_MEMORY } DWORD WINAPI ScheduledMemoryCollectorThread(LPVOID /*lpParam*/)