Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(967)

Unified Diff: src/common/linux/memory_mapped_file.cc

Issue 2065493006: linux-syscall-support: pull in latest version (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | src/common/memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/linux/memory_mapped_file.cc
diff --git a/src/common/linux/memory_mapped_file.cc b/src/common/linux/memory_mapped_file.cc
index 592b66c8d6460cfa90ea9528a72cea7968edc99d..4e938269f26082784e97a49a76df56e09b72be3b 100644
--- a/src/common/linux/memory_mapped_file.cc
+++ b/src/common/linux/memory_mapped_file.cc
@@ -87,18 +87,7 @@ bool MemoryMappedFile::Map(const char* path, size_t offset) {
return true;
}
-#if defined(__x86_64__) || defined(__aarch64__) || \
- (defined(__mips__) && _MIPS_SIM == _ABI64)
void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset);
-#else
- if ((offset & 4095) != 0) {
- // Not page aligned.
- sys_close(fd);
- return false;
- }
- void* data = sys_mmap2(
- NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset >> 12);
-#endif
sys_close(fd);
if (data == MAP_FAILED) {
return false;
« no previous file with comments | « DEPS ('k') | src/common/memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698