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

Add XNN_HAS_MMAP to common.h, as a way to indicate that a given platform doesn't support mmap() at all and must fall back to malloc() instead. #6816

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Add XNN_HAS_MMAP to common.h, as a way to indicate that a given platform doesn't support mmap() at all and must fall back to malloc() instead.

Note that it's initially (effectively) unused, since it's only set to 0 for Windows, which already has its own custom code path for memory allocation; however, this flag will be used for at least one upcoming target and landing it separately from introduction of that target seems easier to review.

…orm doesn't support mmap() at all and must fall back to malloc() instead.

Note that it's initially (effectively) unused, since it's only set to 0 for Windows, which already has its own custom code path for memory allocation; however, this flag will be used for at least one upcoming target and landing it separately from introduction of that target seems easier to review.

PiperOrigin-RevId: 660509451
@copybara-service copybara-service bot merged commit 197d184 into master Aug 7, 2024
1 check passed
@copybara-service copybara-service bot deleted the test_660438085 branch August 7, 2024 20:12
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.

1 participant