Browse Source

dtoolutil: Set system malloc tag to mimalloc when enabled

rdb 3 years ago
parent
commit
70415af210
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolutil/pandaSystem.cxx

+ 2 - 0
dtool/src/dtoolutil/pandaSystem.cxx

@@ -58,6 +58,8 @@ PandaSystem() :
   set_system_tag("system", "malloc", "dlmalloc");
   set_system_tag("system", "malloc", "dlmalloc");
 #elif defined(USE_MEMORY_PTMALLOC2)
 #elif defined(USE_MEMORY_PTMALLOC2)
   set_system_tag("system", "malloc", "ptmalloc2");
   set_system_tag("system", "malloc", "ptmalloc2");
+#elif defined(USE_MEMORY_MIMALLOC)
+  set_system_tag("system", "malloc", "mimalloc");
 #else
 #else
   set_system_tag("system", "malloc", "malloc");
   set_system_tag("system", "malloc", "malloc");
 #endif
 #endif