From db3203fe59b32eb956fcb004a8ef863fad199899 Mon Sep 17 00:00:00 2001 From: Ben Judd Date: Sat, 17 Apr 2021 13:49:21 -0700 Subject: [PATCH] mallinfo is deprecated in favor of mallinfo2 --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 85e45c4b..db2dc168 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1446,7 +1446,7 @@ const CommandDesc debug_cmd = { write_to_debug_buffer({}); write_to_debug_buffer(format(" Total: {}", total)); #if defined(__GLIBC__) || defined(__CYGWIN__) - write_to_debug_buffer(format(" Malloced: {}", mallinfo().uordblks)); + write_to_debug_buffer(format(" Malloced: {}", mallinfo2().uordblks)); #endif } else if (parser[0] == "shared-strings")