summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/tcmalloc/chromium/src/deep-heap-profile.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
index 7541c18..f80128d 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
@@ -592,8 +592,9 @@ void DeepHeapProfile::DeepBucketTable::WriteForBucketFile(
if (deep_bucket->is_logged) {
continue; // Skip the bucket if it is already logged.
}
- if (bucket->alloc_size - bucket->free_size <= 64) {
- continue; // Skip small buckets.
+ if (!deep_bucket->is_mmap &&
+ bucket->alloc_size - bucket->free_size <= 64) {
+ continue; // Skip small malloc buckets.
}
deep_bucket->UnparseForBucketFile(&buffer);