Explorar o código

pkg/mem: set pkg type when intializing memory pool

Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
8ef30f91ba
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      mem/mem.c

+ 2 - 2
mem/mem.c

@@ -76,12 +76,12 @@ int init_pkg_mallocs(void)
 	#endif
 	#endif
 	#ifdef F_MALLOC
 	#ifdef F_MALLOC
 		if (mem_pool)
 		if (mem_pool)
-			mem_block=fm_malloc_init(mem_pool, pkg_mem_size);
+			mem_block=fm_malloc_init(mem_pool, pkg_mem_size, MEM_TYPE_PKG);
 	#elif DL_MALLOC
 	#elif DL_MALLOC
 		/* don't need this */
 		/* don't need this */
 	#else
 	#else
 		if (mem_pool)
 		if (mem_pool)
-			mem_block=qm_malloc_init(mem_pool, pkg_mem_size);
+			mem_block=qm_malloc_init(mem_pool, pkg_mem_size, MEM_TYPE_PKG);
 	#endif
 	#endif
 	#ifndef DL_MALLOC
 	#ifndef DL_MALLOC
 	if (mem_block==0){
 	if (mem_block==0){