[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:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user