Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Aug 2, 2025

This commit adds GENERAL_ARENA for functions, symbols, constants, aliases, macros, and traversal args, converting remaining malloc/calloc calls to arena-based allocation.

It also removes corresponding free() calls as arena handles bulk deallocation.

This completes the migration to arena-based memory management throughout and eliminates potential memory leaks and improving consistency.

Summary by Bito

This pull request implements a new memory management strategy using GENERAL_ARENA, replacing traditional malloc and calloc calls with arena-based allocation. It enhances memory management consistency, eliminates potential memory leaks, and removes unnecessary free calls, completing the migration to arena-based memory management.

This commit adds GENERAL_ARENA for functions, symbols, constants,
aliases, macros, and traversal args, converting remaining malloc/calloc
calls to arena-based allocation.

It also removes corresponding free() calls as arena handles bulk
deallocation.

This completes the migration to arena-based memory management throughout
and eliminates potential memory leaks and improving consistency.
@jserv jserv merged commit 1fb9fa5 into master Aug 3, 2025
12 checks passed
@jserv jserv deleted the arena-alloc branch August 3, 2025 03:52
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.

3 participants