add double-destroy check for MemoryContext

This commit is contained in:
jg0
2021-07-27 19:54:14 +08:00
committed by wangzelin.wzl
parent 91852f9b58
commit 0b7773c43f
86 changed files with 416 additions and 329 deletions

View File

@ -33,7 +33,7 @@ void __attribute__((weak)) has_unfree_callback(char* info)
_OB_LOG(ERROR, "HAS UNFREE PTR!!! %s", info);
}
ObjectSet::ObjectSet(MemoryContext* mem_context, const uint32_t ablock_size)
ObjectSet::ObjectSet(__MemoryContext__* mem_context, const uint32_t ablock_size)
: mem_context_(mem_context),
locker_(nullptr),
mod_set_(nullptr),