forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break out platform-specific discardable paging into Lock/UnlockPages.
Refactor the DiscardableSharedMemory implementation to put platform- native discardable page management in separate LockPages/UnlockPages functions. This isolates the platform-specific calls from internal details of the DiscardableSharedMemory implementation, in particular the need to allow for the space occupied by the SharedState structure. Also corrects "lock page" platform API errors to return FAILED rather than PURGED result, and adds some DCHECKing for "unlock page" API errors. Bug: 716205 Change-Id: I572d65a0304816305053669ec81c78a3461d8325 Reviewed-on: https://chromium-review.googlesource.com/574901 Commit-Queue: Wez <wez@chromium.org> Reviewed-by: David Reveman <reveman@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#488027}
- Loading branch information
Wez
authored and
Commit Bot
committed
Jul 19, 2017
1 parent
024c77e
commit 42e65bf
Showing
1 changed file
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters