mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Update.
* malloc/malloc.c (public_mALLINFo): Initialize malloc if it hasn't happened yet. Fix completely broken implementation. The second parameter is of
This commit is contained in:
parent
ca343e7358
commit
6a00759b0c
@ -1,7 +1,10 @@
|
||||
2003-06-18 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* 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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user