supporting sub_ctxs for each tenant_ctx_allocator, which can optimize the problem of memory fragmentation.

This commit is contained in:
tushicheng
2023-09-04 02:40:49 +00:00
committed by ob-robot
parent 5ae3de7429
commit a91a0535f3
11 changed files with 193 additions and 53 deletions

View File

@ -238,7 +238,7 @@ TEST_F(TestObjectMgr, TestSubObjectMgr)
abort_unless(ptr != MAP_FAILED);
int64_t tenant_id = OB_SERVER_TENANT_ID;
int64_t ctx_id = ObCtxIds::DEFAULT_CTX_ID;
SubObjectMgr som(false, tenant_id, ctx_id);
SubObjectMgr som(false, tenant_id, ctx_id, INTACT_NORMAL_AOBJECT_SIZE, NULL);
ObMemAttr attr;
som.set_tenant_ctx_allocator(*ObMallocAllocator::get_instance()->get_tenant_ctx_allocator(
tenant_id, ctx_id).ref_allocator());