测试用例编写

This commit is contained in:
2026-01-10 18:31:26 +08:00
parent 1adb24482b
commit 1a7c1c172c
13 changed files with 98 additions and 19 deletions

View File

@@ -26,7 +26,6 @@ void kvs_free(void *ptr) {
#if MEMORY_SELECT_MALLOC == MEMORY_USE_MYMALLOC
mp_pool_t global_mempool = {0};
#endif
// >= x 的第一个2^n
uint32_t mp_ceil_pow2_u32(uint32_t x) {
@@ -161,4 +160,5 @@ void mp_free(void* ptr){
mp_free_node_t* node = (mp_free_node_t*)ptr;
node->next = p->buckets[cid].free_list;
p->buckets[cid].free_list = node;
}
}
#endif