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

Move allocators to separate files #151

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Dec 26, 2022

Consolidated changes to refactor the allocator files into mostly independent files per supported platform

@carenas carenas marked this pull request as draft December 26, 2022 08:42
@carenas carenas force-pushed the mem_allocator branch 2 times, most recently from 3a730eb to 6364ecb Compare December 26, 2022 10:23
@carenas carenas marked this pull request as ready for review December 26, 2022 10:25
@zherczeg
Copy link
Owner

Are you ok with the move patch? Do you want to merge it with this patch before landing (I can close my pr and let you do the whole thing)?

@carenas
Copy link
Contributor Author

carenas commented Dec 26, 2022

I don't think the original patch is ready for merging, even after squashing this change on top, which is needed to fix building in macOS (only test it with Intel) and avoid crashes in 32bit NetBSD with ProtExec (should likely be also broken in Linux and other 32bit *NIX but didn't test it yet).

@zherczeg
Copy link
Owner

It is very likely there will be issues, so it will take time to fix everything. Hopefully we will get feedback from users as well. I never thought the allocators will be this complex, and we need to do something with the growing complexity at some point.

@zherczeg
Copy link
Owner

zherczeg commented Dec 26, 2022

The jit tests works on 32 bit linux with prot exec allocator. Btw CHUNK_SIZE is configurable now, so Prot allocators could use bigger files than 64KB, something like 1MB should be better.

@zherczeg
Copy link
Owner

Why do we want to combine netbsd and linux? The point is separating OS-es for easier maintainability.
What are the plans for this work? Shall we land them as independent patches, or you could combine the two patches in this pr?

@carenas carenas force-pushed the mem_allocator branch 2 times, most recently from 2344d8e to 9a758ae Compare December 30, 2022 19:28
@carenas
Copy link
Contributor Author

carenas commented Dec 30, 2022

I tried to get a branch rebased and integrated with all changes, but it is not working.

Will keep looking at it and retarget in this PR then when it is ready, feel free to close your original PR

@zherczeg
Copy link
Owner

zherczeg commented Jan 1, 2023

Ok. You can make a single patch from it (combining the original and your work). I hope you can do it soon.

@carenas carenas marked this pull request as draft January 3, 2023 08:52
@carenas carenas changed the base branch from mem_allocator to master January 4, 2023 04:07
@carenas carenas changed the title fixup! Move allocators to separate files Move allocators to separate files Jan 4, 2023
@carenas carenas marked this pull request as ready for review January 4, 2023 04:07
Copy link
Owner

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit 7de0fee into zherczeg:master Jan 4, 2023
@carenas carenas deleted the mem_allocator branch January 4, 2023 08:33
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.

2 participants