Skip to content

Require the memory pool to be initialized with an arena - #3077

Merged
IntegratedQuantum merged 1 commit into
PixelGuys:masterfrom
IntegratedQuantum:memory_pool_arena
May 15, 2026
Merged

IntegratedQuantum merged 1 commit into
PixelGuys:masterfrom
IntegratedQuantum:memory_pool_arena

Conversation

@IntegratedQuantum

Copy link
Copy Markdown
Member

This allows using the globalArena for it. This does mean that there is possibly more congestion than having separate arenas for each, but on the other hand it does reduce the amount of setup code we need to have, since the memory pools now no longer need to be deinited. Furthermore using the globalArena might allow us to save some memory in the future by limiting the maximums allocation size or using a backing VirtualList.

In practice no performance difference was found.

The other downside is that there now is less telemetry on where memory is allocated, since the memory pools cannot print anything on deinit anymore. I have made an issue to reintroduce a (better) leak check #3075

progress towards #2748

@IntegratedQuantum
IntegratedQuantum merged commit d6be43c into PixelGuys:master May 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant