fix ObTimeWheelTask core dump

This commit is contained in:
obdev
2023-05-25 06:41:17 +00:00
committed by ob-robot
parent 81af727eb5
commit f9c8628a2d

View File

@ -49,7 +49,7 @@ struct DefaultAllocator : public ObIAllocator {
#ifdef UNIITTEST_DEBUG
total_alive_num++;
#endif
return share::mtl_malloc(size, "OccamThreadPool");
return ob_malloc(size, SET_USE_500("OccamThreadPool"));
}
void* alloc(const int64_t size, const ObMemAttr &attr) override {
UNUSED(attr);
@ -59,7 +59,7 @@ struct DefaultAllocator : public ObIAllocator {
#ifdef UNIITTEST_DEBUG
total_alive_num--;
#endif
share::mtl_free(ptr);
ob_free(ptr);
}
#ifdef UNIITTEST_DEBUG
int total_alive_num = 0;