MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
全部  文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Public 成员函数 | Private 属性 | 所有成员列表
oceanbase::ObArena类 参考

a simple memory allocator. 更多...

#include <ob_arena.h>

Public 成员函数

 ObArena (const ObArena &)=delete
 
ObArenaoperator= (const ObArena &)=delete
 
char * alloc (size_t bytes)
 
size_t memory_usage () const
 

Private 属性

vector< char * > blocks_
 
size_t memory_usage_
 

详细描述

a simple memory allocator.

待办事项:
optimize fractional memory allocation
注解
1. alloc memory from arena, no need to free it.
  1. not thread-safe.

该类的文档由以下文件生成: