[compiler-rt] r302692 - Revert "Disable static caching of dyld header on Go sanitizers"
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 09:33:43 PDT 2017
Author: fjricci
Date: Wed May 10 11:33:43 2017
New Revision: 302692
URL: http://llvm.org/viewvc/llvm-project?rev=302692&view=rev
Log:
Revert "Disable static caching of dyld header on Go sanitizers"
This is a problem on more than just the go sanitizers, so it's
not a good enough fix for the issue.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc?rev=302692&r1=302691&r2=302692&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc Wed May 10 11:33:43 2017
@@ -227,12 +227,8 @@ static const struct mach_header *get_dyl
// and it is expensive to compute once many libraries have been loaded,
// so cache it here and do not reset.
static const struct mach_header *get_dyld_hdr() {
-#if !SANITIZER_GO
static const struct mach_header *header = get_dyld_image_header();
return header;
-#else
- return get_dyld_image_header();
-#endif
}
void MemoryMappingLayout::GetSegmentAddrRange(uptr *start, uptr *end,
More information about the llvm-commits
mailing list