This folder contains code for allocation.
The main entry point is the alloc.h file, which
exposes class Allocator. This class is a per-thread data structure that is
constructed and retrieved by
File::get_local_allocator().
The class contains the following public members:
-
class BlockAllocatoris a block allocator that allocates blocks of a fixed size less than or equal to 64 blocks. -
class TxBlockAllocatorallocates transaction blocks. It also keeps track of the currently using tx block in the shared memory. It depends on theBlockAllocatorclass to allocate blocks. -
class LogEntryAllocatorallocates log entries. It also depends on theBlockAllocatorclass to allocate blocks.