Use actual mapping size when unmapping a region
SharedMemoryMapping::Unmap() call passes a mapping size to the munmap() or a similar system call on some platforms. The actual size of a mapping is stored in the SharedMemoryMapping::mapped_size_ but the SharedMemoryMapping::size_ which contains the logical size of the mapping has been mistakenly used instead. This bug is not severe though because the mapped_size_/size_ mismatch exists only on Windows and Windows system call for unmapping doesn't accept the size. Change-Id: Id25c3dce6f0e2ea78d885e76e936572d4e5d2d52 Reviewed-on: https://chromium-review.googlesource.com/1241054Reviewed-by:Erik Chen <erikchen@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Commit-Queue: Alexandr Ilin <alexilin@chromium.org> Cr-Commit-Position: refs/heads/master@{#593695}
Showing
Please register or sign in to comment