From 48eab421019fa7ad3b8cf5a98e2457c3ae537640 Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Wed, 10 May 2017 16:33:43 +0000 Subject: [PATCH] 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. llvm-svn: 302692 --- compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc index 0b2193a..edb14c3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc @@ -227,12 +227,8 @@ static const struct mach_header *get_dyld_image_header() { // 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, -- 2.7.4