From daaf6a9e6bbd7d308ceaedfb8f313dd98b17ca56 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 30 Nov 2019 22:37:05 +0800 Subject: [PATCH] process: Remove use of mallinfo under Musl --- src/base/process/process_metrics_posix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/process/process_metrics_posix.cc b/src/base/process/process_metrics_posix.cc index 518652573b..a00578037a 100644 --- a/src/base/process/process_metrics_posix.cc +++ b/src/base/process/process_metrics_posix.cc @@ -119,6 +119,8 @@ size_t ProcessMetrics::GetMallocUsage() { malloc_statistics_t stats = {0}; malloc_zone_statistics(nullptr, &stats); return stats.size_in_use; +#elif defined(OS_LINUX) && defined(__UCLIBC__) + return 0; #elif defined(OS_LINUX) || defined(OS_ANDROID) struct mallinfo minfo = mallinfo(); #if BUILDFLAG(USE_TCMALLOC)