From 85f5e48ca99e5ed638051a5b6202fe71e205eb25 Mon Sep 17 00:00:00 2001 From: GoldJohnKing Date: Wed, 5 Jan 2022 09:59:02 +0800 Subject: [PATCH] Set the memory collector thread priority to background --- src/cma/cma_utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cma/cma_utils.cpp b/src/cma/cma_utils.cpp index 8db6f84a9..69d326db8 100644 --- a/src/cma/cma_utils.cpp +++ b/src/cma/cma_utils.cpp @@ -32,6 +32,7 @@ int CmaGetReservedHugePagesCount(void) void CmaCreateMemoryCollectorThread(void) { memoryCollectorThread = CreateThread(NULL, 0, MemoryAllocatorThread, NULL, 0, NULL); + SetThreadPriority(memoryCollectorThread, THREAD_MODE_BACKGROUND_BEGIN); } void CmaTerminateMemoryCollectorThread(void)