What's the difference between a memory arena and a memory pool?

Viewed 2545

I've seen both terms used for wrappers to memory allocators, whats the difference between these? (if any)

2 Answers

The Regional memory management memory slots sometimes called "arena"s and sometimes "pool". The "pool" is used not only in native raw memory managements in native code C/C++, but also in JVM to keep warm memory and minimise latency impact of GC pauses.

It's not same anymore and not "object pool" should be called "arena" as rust adopted also - https://manishearth.github.io/blog/2021/03/15/arenas-in-rust/ to avoid confusion.

Related