Skip to main content

Questions tagged [arena]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
1 answer
502 views

Arena/Region allocator in C++

Trying to get a better grasp on low-level memory management, I implemented an arena allocator in C++. It's a rough learning exercise inspired by Handmade hero's and tsoding's advice on memory ...
HernanATN's user avatar
  • 265
5 votes
1 answer
195 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 ...
Madagascar's user avatar
  • 9,857
7 votes
2 answers
276 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 ...
Madagascar's user avatar
  • 9,857
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 ...
Madagascar's user avatar
  • 9,857