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

Ensure that the static array backend's scratch heap is page-aligned #87

Merged
merged 3 commits into from
Oct 31, 2019

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 28, 2019

Technically, at minimum we only assert that imp::alloc_pages returns a block of memory that is word-aligned, but it makes sense to me to keep it "page"-aligned as that is the granularity of allocation in the backend (this might be a system without virtual memory, so "page" is maybe a misnomer).

This should help with #85

@ZackPierce or @DrGoldfire could you take a look at this?

+cc @nand-nor

@fitzgen fitzgen force-pushed the align-static-array-scratch-heap branch 2 times, most recently from 72e4e5d to 6be49c1 Compare October 28, 2019 23:16
@fitzgen fitzgen force-pushed the align-static-array-scratch-heap branch 3 times, most recently from 3fb01e6 to cd40b2c Compare October 29, 2019 16:52
@fitzgen fitzgen force-pushed the align-static-array-scratch-heap branch from cd40b2c to 816eca6 Compare October 29, 2019 17:08
@fitzgen fitzgen merged commit f26c431 into master Oct 31, 2019
@fitzgen fitzgen deleted the align-static-array-scratch-heap branch October 31, 2019 17:16
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.

None yet

1 participant