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

std: Fix StackFallbackAllocator #7425

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

Luukdegram
Copy link
Member

This PR fixes the StackFallbackAllocator that has been broken since #5064.
I also added a test to prevent future regression.

This really only fixes it for cases where the fallback allocator is an allocator that was defined inside heap.zig as it relies on access to reallocFn of the allocator itself. It probably needs a redesign to have it working with all allocators. If it's not too complex or someone is willing to point me in the right direction I don't mind implementing that as well.

ps: Any feedback is welcome, really.

@daurnimator daurnimator added the standard library This issue involves writing Zig code for the standard library. label Dec 14, 2020
@Vexu Vexu merged commit d73f46b into ziglang:master Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants