[lsan] Increase the hardcoded limit on number of leaks.
authorSergey Matveev <earthdok@google.com>
Fri, 12 Jul 2013 12:31:22 +0000 (12:31 +0000)
committerSergey Matveev <earthdok@google.com>
Fri, 12 Jul 2013 12:31:22 +0000 (12:31 +0000)
We never expected to see so many leaks in the real world. Until we did.

llvm-svn: 186157

compiler-rt/lib/lsan/lsan_common.cc

index 534f154e8ca396fc047f90b5223094afe1eaf48d..fbb7a7457fd6b1f3ad49edd61d6a23eccf6200d2 100644 (file)
@@ -420,7 +420,7 @@ static Suppression *GetSuppressionForStack(u32 stack_trace_id) {
 // real-world applications.
 // FIXME: Get rid of this limit by changing the implementation of LeakReport to
 // use a hash table.
-const uptr kMaxLeaksConsidered = 1000;
+const uptr kMaxLeaksConsidered = 5000;
 
 void LeakReport::Add(u32 stack_trace_id, uptr leaked_size, ChunkTag tag) {
   CHECK(tag == kDirectlyLeaked || tag == kIndirectlyLeaked);