From 04f81f4c8c29f70723674475aea6c2aed9db81fb Mon Sep 17 00:00:00 2001 From: jinwuwu001 Date: Fri, 13 Feb 2026 15:48:06 +0800 Subject: [PATCH] Switch web platform memory allocator from mimalloc to dlmalloc. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8b05fe977..66bc2c5937 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -547,7 +547,7 @@ if (WEB) endif () if (PAG_USE_THREADS) list(APPEND PAG_LINK_OPTIONS -pthread -sUSE_PTHREADS=1 -sINITIAL_MEMORY=32MB - -sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency -sEXIT_RUNTIME=0 -sINVOKE_RUN=0 -sMALLOC=mimalloc) + -sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency -sEXIT_RUNTIME=0 -sINVOKE_RUN=0 -sMALLOC=dlmalloc) list(APPEND PAG_COMPILE_OPTIONS -fPIC -pthread -sUSE_PTHREADS=1) endif () elseif (PAG_BUILD_SHARED)