Skip to content

Fix aarch64-linker, take 2 #1791

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

Merged
merged 7 commits into from
Nov 27, 2022
Merged

Fix aarch64-linker, take 2 #1791

merged 7 commits into from
Nov 27, 2022

Conversation

angerman
Copy link
Collaborator

This one moves most of the allocation logic into the m32 allocator, while also completely ignoring the lower requirement. This of course is not ideal, however we've been mapping pages at the oder of 100x (4096 vs 40) the required space, and thus often ran out of memory due to sections per function.

This is now much improved. It also revealed at least one out-of-bounds memory write issue.

@angerman angerman marked this pull request as ready for review November 24, 2022 14:10
@michaelpj
Copy link
Collaborator

Are these patches in GHC?

@angerman
Copy link
Collaborator Author

Are these patches in GHC?

No. They would be against 8.10.7, and there's not going to be a 8.10.8 release is all likelihood.

9.6 has a better m32 allocator for windows that does high mem as well. We should use that there.

I'll need to check if the mem corruption bug is present in master though.

With a 9.2 compatible node, we should be able to see if the same issue still arise there.

@angerman
Copy link
Collaborator Author

I don't get why ci/ciJobs.x86_64-linux.required-unstable-ghc8107-aarch64-multiplatform fails.

@angerman
Copy link
Collaborator Author

I don't get why ci/ciJobs.x86_64-linux.required-unstable-ghc8107-aarch64-multiplatform fails.

That job just built fine on the agent.

@angerman angerman merged commit bf469ed into master Nov 27, 2022
@iohk-bors iohk-bors bot deleted the angerman/mmap-next-2 branch November 27, 2022 01:51
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