mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Remove mi_arena nested function.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2014-05-30 Ondřej Bílka <neleai@seznam.cz>
|
||||
|
||||
* malloc/malloc.c (malloc_info): Inline mi_arena.
|
||||
|
||||
2014-05-29 Richard Henderson <rth@twiddle.net>
|
||||
|
||||
* sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
|
||||
|
@@ -5004,8 +5004,16 @@ malloc_info (int options, FILE *fp)
|
||||
size_t total_aspace = 0;
|
||||
size_t total_aspace_mprotect = 0;
|
||||
|
||||
void
|
||||
mi_arena (mstate ar_ptr)
|
||||
|
||||
|
||||
if (__malloc_initialized < 0)
|
||||
ptmalloc_init ();
|
||||
|
||||
fputs ("<malloc version=\"1\">\n", fp);
|
||||
|
||||
/* Iterate over all arenas currently in use. */
|
||||
mstate ar_ptr = &main_arena;
|
||||
do
|
||||
{
|
||||
fprintf (fp, "<heap nr=\"%d\">\n<sizes>\n", n++);
|
||||
|
||||
@@ -5133,18 +5141,6 @@ malloc_info (int options, FILE *fp)
|
||||
}
|
||||
|
||||
fputs ("</heap>\n", fp);
|
||||
}
|
||||
|
||||
if (__malloc_initialized < 0)
|
||||
ptmalloc_init ();
|
||||
|
||||
fputs ("<malloc version=\"1\">\n", fp);
|
||||
|
||||
/* Iterate over all arenas currently in use. */
|
||||
mstate ar_ptr = &main_arena;
|
||||
do
|
||||
{
|
||||
mi_arena (ar_ptr);
|
||||
ar_ptr = ar_ptr->next;
|
||||
}
|
||||
while (ar_ptr != &main_arena);
|
||||
|
Reference in New Issue
Block a user