From: Ulrich Drepper Date: Wed, 18 Jun 2003 23:52:51 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~564 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a00759b0ccfbde390331ac4908be92deeb4237b;p=platform%2Fupstream%2Fglibc.git Update. * malloc/malloc.c (public_mALLINFo): Initialize malloc if it hasn't happened yet. Fix completely broken implementation. The second parameter is of --- diff --git a/ChangeLog b/ChangeLog index 7c39143..8cc1b1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ 2003-06-18 Ulrich Drepper + * malloc/malloc.c (public_mALLINFo): Initialize malloc if it + hasn't happened yet. + * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): - Fix completely broken impleentation. The second parameter is of + Fix completely broken implementation. The second parameter is of type struct ucontext*. * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always diff --git a/malloc/malloc.c b/malloc/malloc.c index 8b862fe..5cc3473 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -3708,6 +3708,8 @@ struct mallinfo public_mALLINFo() { struct mallinfo m; + if(__malloc_initialized < 0) + ptmalloc_init (); (void)mutex_lock(&main_arena.mutex); m = mALLINFo(&main_arena); (void)mutex_unlock(&main_arena.mutex);