Skip to content
Discussion options

You must be logged in to vote

Yeah, the struct memory_arena has 4 members.
They are:

  1. CurrentBlock: this points to the current active memory block
  2. MinimumBlockSize: this is the minimum block size that is allocated when more memory space is needed.
  3. AllocationFlags: These are configuration flags like clear on alloc, check for overflow.
  4. TempCount: This tracks the number of temporary allocations.

You can think of an arena as a region of memory where things can be allocated linearly. You won't need to individually free things later. Instead, you can reset the arena or completely discard whole blocks of it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by btgvesta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants