Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/Basic/Statistic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ void updateProcessWideFrontendCounters(
// On Darwin we have a lifetime max that's maintained by malloc we can
// just directly query, even if we only make one query on shutdown.
malloc_statistics_t Stats;
malloc_zone_statistics(malloc_default_zone(), &Stats);
// Query all zones.
malloc_zone_statistics(/*zone=*/NULL, &Stats);
C.MaxMallocUsage = (int64_t)Stats.max_size_in_use;
#else
// If we don't have a malloc-tracked max-usage counter, we have to rely
Expand Down