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

Make ArenaAllocator try to resize first #6413

Merged
merged 1 commit into from
Sep 25, 2020
Merged

Conversation

LemonBoy
Copy link
Contributor

I haven't noticed too many hits for the new code as most allocators are only ok with shrinking.

Closes #5116

@alexnask alexnask added enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library. labels Sep 25, 2020
@alexnask alexnask merged commit 288198e into ziglang:master Sep 25, 2020
@alexnask
Copy link
Contributor

Nice, thanks for the fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std.heap.ArenaAllocator should attempt to resize before allocating a new node
2 participants