diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-12-28 01:27:18 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-12-28 01:27:18 +0000 |
| commit | 3408b497f9f4517b4e7a62e1da4a6745dde41185 (patch) | |
| tree | 98d64634805272937d0416fba88389947dd35510 /compiler-rt/lib/sanitizer_common/sanitizer_posix.cc | |
| parent | 5ede950df9e99dc813f9251173cc6d38bf6293e8 (diff) | |
| download | bcm5719-llvm-3408b497f9f4517b4e7a62e1da4a6745dde41185.tar.gz bcm5719-llvm-3408b497f9f4517b4e7a62e1da4a6745dde41185.zip | |
Revert "[asan] Support running without /proc.", +1
Revert r350104 "[asan] Fix build on windows."
Revert r350101 "[asan] Support running without /proc."
These changes break Mac build, too.
llvm-svn: 350112
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_posix.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_posix.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc index 1286e560b50..6db92585fc0 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc @@ -18,7 +18,6 @@ #include "sanitizer_common.h" #include "sanitizer_file.h" -#include "sanitizer_flags.h" #include "sanitizer_libc.h" #include "sanitizer_posix.h" #include "sanitizer_procmaps.h" @@ -158,8 +157,6 @@ void MprotectMallocZones(void *addr, int prot) {} #endif fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { - if (ShouldMockFailureToOpen(filename)) - return kInvalidFd; int flags; switch (mode) { case RdOnly: flags = O_RDONLY; break; @@ -232,8 +229,6 @@ static inline bool IntervalsAreSeparate(uptr start1, uptr end1, // several worker threads on Mac, which aren't expected to map big chunks of // memory). bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) { - if (!MemoryMappingLayout::IsAvailable()) - return true; // hope for the best MemoryMappingLayout proc_maps(/*cache_enabled*/true); MemoryMappedSegment segment; while (proc_maps.Next(&segment)) { @@ -339,11 +334,6 @@ fd_t ReserveStandardFds(fd_t fd) { return fd; } -bool ShouldMockFailureToOpen(const char *path) { - return common_flags()->test_only_emulate_no_procfs && - internal_strncmp(path, "/proc/", 6) == 0; -} - } // namespace __sanitizer #endif // SANITIZER_POSIX |

