diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-16 21:22:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-16 21:22:16 +0000 |
commit | df77455c4bae4518a76f2029bec5295e08c9e50b (patch) | |
tree | 3da4b0299a119ecccfd831021ab00a5b5bdfe20c /malloc/arena.c | |
parent | 74b3cf224e48ce2a10cd70f5f3a911fc6f2718bc (diff) | |
download | glibc-df77455c4bae4518a76f2029bec5295e08c9e50b.tar.gz glibc-df77455c4bae4518a76f2029bec5295e08c9e50b.tar.xz glibc-df77455c4bae4518a76f2029bec5295e08c9e50b.zip |
[BZ #9957]
2009-04-16 Ulrich Drepper <drepper@redhat.com> [BZ #9957] * malloc/malloc.c (force_reg): Define. (sYSMALLOc): Load hook variable into variable before test and force into register. (sYSTRIm): Likewise. (public_mALLOc): Force hook value into register. (public_fREe): Likewise. (public_rEALLOc): Likewise. (public_mEMALIGn): Likewise. (public_vALLOc): Likewise. (public_pVALLOc): Likewise. (public_cALLOc): Likewise. (__posix_memalign): Likewise. * malloc/arena.c (ptmalloc_init): Load hook variable into variable before test and force into register. * malloc/hooks.c (top_check): Likewise. (public_s_ET_STATe): Pretty printing. * resolv/res_send.c (send_dg): Don't just ignore the result we got in case we only receive one reply in single-request mode.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r-- | malloc/arena.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index f280d38811..4d0deefe19 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -624,8 +624,9 @@ ptmalloc_init (void) if (check_action != 0) __malloc_check_init(); } - if(__malloc_initialize_hook != NULL) - (*__malloc_initialize_hook)(); + void (*hook) (void) = force_reg (__malloc_initialize_hook); + if (hook != NULL) + (*hook)(); __malloc_initialized = 1; } |