Skip to main content

Questions tagged [arena]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer
176 views

Unit Tests for an Arena Allocator

In my last post about the allocator, I received some comments about unit-tests: The code looks correct on the majority of the cases, I will suggest run valgrind or define a good set of unit tests ...
Harith's user avatar
  • 8,407
7 votes
2 answers
172 views

An Arena/Bump Allocator in C (Follow-up)

This is a follow-up to: An Arena/Bump Allocator in C. LOC: 234. (Not including the sample tests, still quite small and manageable.) The allocator uses C99, but sample tests use C11's ...
Harith's user avatar
  • 8,407
8 votes
4 answers
2k views

An Arena/Bump Allocator in C

An arena allocator is a memory allocation technique used in computer programming where memory is allocated from a pre-allocated block (arena) rather than individually requesting memory from the ...
Harith's user avatar
  • 8,407