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

Use os_proc_available_memory if available #851

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

kstenerud
Copy link
Contributor

@kstenerud kstenerud commented Oct 19, 2020

Goal

Apple provides a more accurate measure of usable memory in iOS 13 compared to what we use currently. We should use it when it's available.

Design

Modified bsg_ksmachusableMemory() to call os_proc_available_memory() when it's available.

Testing

Ran all unit tests on all platforms, and did manual tests to verify that the free memory values make sense.

@kstenerud kstenerud force-pushed the 5236-os_proc_available_memory branch from 2cacc5a to 3aac0b4 Compare October 19, 2020 14:13
@kstenerud kstenerud changed the base branch from master to next October 19, 2020 14:24
@kstenerud kstenerud marked this pull request as ready for review October 19, 2020 14:24
@kstenerud kstenerud force-pushed the 5236-os_proc_available_memory branch 3 times, most recently from e0df55a to 1715447 Compare October 20, 2020 07:24
CHANGELOG.md Outdated Show resolved Hide resolved
@kstenerud kstenerud force-pushed the 5236-os_proc_available_memory branch 5 times, most recently from f02e5bd to e9f8b6f Compare October 23, 2020 10:25
@kstenerud kstenerud requested a review from nickdowell October 23, 2020 10:28
@kstenerud kstenerud force-pushed the 5236-os_proc_available_memory branch from e9f8b6f to a08363d Compare October 23, 2020 12:10
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