Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality for mem.Arena to support growing in-place. #4862

Closed
wants to merge 1 commit into from

Conversation

Byron-Hodel
Copy link

Added arena_resize* procedures for mem.Arena, supporting:

  • In-place growth when no memory is allocated after the block.
  • Freeing allocations if no subsequent allocations exist (size == 0).
  • Allocating a new block and copying data when in-place growth isn't possible.

In addition to these changes, I've modified the arena_allocator_proc to utilize these new procedures.

@Byron-Hodel
Copy link
Author

I was messing around on my branch and it messed up my pr.

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