forked from Pissandshittium/pissandshittium
-
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.
When SharedMemory::Close is called, SharedMemoryHandle is cleared and losts its ID. This means SharedMemory(Handle)'s ID is not available after closing. In DiscardableSharedMemory, shared memory is closed without unmmap-ing just to save file descriptor resources, and this makes SharedMemoryTracker confused since SharedmemoryTracker tracks mmap-ed (and not unmmap-ed) shared memory regions, and tries to get IDs of those regions. The problem is that sometimes SharedMemoryTarcker fails to get such IDs. This CL fixes this problem by adding SharedMemory::mapped_id() to make the id available even after Close is called. Bug: 604726, 740781 Change-Id: I5dbf6bd133d8a1e935adad53604f3f40da3c4a6f Reviewed-on: https://chromium-review.googlesource.com/566353 Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Erik Chen <erikchen@chromium.org> Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org> Cr-Commit-Position: refs/heads/master@{#486375}
- Loading branch information
Hajime Hoshi
authored and
Commit Bot
committed
Jul 13, 2017
1 parent
1c81cac
commit 5d64433
Showing
8 changed files
with
46 additions
and
15 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
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
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
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
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
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
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
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