Skip to content

Commit

Permalink
fix: remove CMA_RESERVE_OS_MEMORY variant as it is not functional at all
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldJohnKing committed Jan 3, 2023
1 parent 9fcafdc commit 5cd500e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cma/cma_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*/)
Expand Down

0 comments on commit 5cd500e

Please sign in to comment.