[Fuchsia] Implement de-commit and discard for PageAllocator.
Some allocators (e.g. the Blink heap) call DecommitSystemPages() to return pages in their free memory pools to the system, or DiscardSystemPages() to make the pages available to the kernel without necessarily de-committing them, rather than actually freeing them. At present Fuchsia does not implement page swapping, nor does it provide a "mark discardable" API, so we implement both APIs using vmar_op_range(DECOMMIT) for now. Bug: 927411, 1022062 Change-Id: Icc61e7b46ebdc4d3fa5308e1b318a7685a6ceb19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892295Reviewed-by:Albert J. Wong <ajwong@chromium.org> Reviewed-by:
Chris Palmer <palmer@chromium.org> Commit-Queue: Wez <wez@chromium.org> Auto-Submit: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#713238}
Showing
Please register or sign in to comment