We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3bbb78 + bbe531c commit ce11162Copy full SHA for ce11162
lib/Basic/Statistic.cpp
@@ -530,7 +530,8 @@ void updateProcessWideFrontendCounters(
530
// On Darwin we have a lifetime max that's maintained by malloc we can
531
// just directly query, even if we only make one query on shutdown.
532
malloc_statistics_t Stats;
533
- malloc_zone_statistics(malloc_default_zone(), &Stats);
+ // Query all zones.
534
+ malloc_zone_statistics(/*zone=*/NULL, &Stats);
535
C.MaxMallocUsage = (int64_t)Stats.max_size_in_use;
536
#else
537
// If we don't have a malloc-tracked max-usage counter, we have to rely
0 commit comments