[FEAT MERGE] merge transfer

Co-authored-by: wxhwang <wxhwang@126.com>
Co-authored-by: godyangfight <godyangfight@gmail.com>
Co-authored-by: Tyshawn <tuyunshan@gmail.com>
This commit is contained in:
xuhuleon
2023-06-21 11:42:26 +00:00
committed by ob-robot
parent d06678002e
commit 9dae112952
1280 changed files with 149724 additions and 48813 deletions

View File

@ -46,7 +46,7 @@ namespace occam
struct DefaultAllocator : public ObIAllocator {
void *alloc(const int64_t size) {
#ifdef UNIITTEST_DEBUG
#ifdef UNITTEST_DEBUG
total_alive_num++;
#endif
return ob_malloc(size, SET_USE_UNEXPECTED_500("OccamThreadPool"));
@ -56,12 +56,12 @@ struct DefaultAllocator : public ObIAllocator {
return alloc(size);
}
void free(void *ptr) override {
#ifdef UNIITTEST_DEBUG
#ifdef UNITTEST_DEBUG
total_alive_num--;
#endif
ob_free(ptr);
}
#ifdef UNIITTEST_DEBUG
#ifdef UNITTEST_DEBUG
int total_alive_num = 0;
#endif
static DefaultAllocator &get_default_allocator() {