测试内存池

This commit is contained in:
1iaan
2026-01-31 15:38:52 +00:00
parent fbdcff6878
commit 003566b69a
29 changed files with 614 additions and 233 deletions

View File

@@ -72,6 +72,10 @@ void kvs_free_impl(void *ptr) {
}
}
int kvs_mem_printf(){
return mp_print(&global_mempool);
}
void *nMalloc(size_t size, const char * filename, const char *func, int line){
void *ptr = kvs_malloc_impl(size);