lsan: fix leaks suppression 59/153359/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 28 Sep 2017 08:50:32 +0000 (11:50 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 28 Sep 2017 08:52:57 +0000 (11:52 +0300)
LSan cannot build backtrace when works with SWAP.
So don't check for reachability.

Change-Id: Ifa0a01b83f8167ae37bd52c29a631ba326a53a82
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
lsan/src/lsan_common_linux.cc

index b19fba8..c5d6e62 100644 (file)
@@ -140,6 +140,10 @@ static void ProcessPlatformSpecificAllocationsCb(uptr chunk, void *arg) {
 // guaranteed to include all dynamic TLS blocks (and possibly other allocations
 // which we don't care about).
 void ProcessPlatformSpecificAllocations(Frontier *frontier) {
+  // SWAP workaround:
+  //   LSan cannot build backtrace when works with SWAP. So don't check
+  //   for reachability.
+  return;
   if (!flags()->use_tls) return;
   if (!linker) return;
   StackDepotReverseMap stack_depot_reverse_map;