2002-12-06 Roland McGrath <roland@redhat.com>
authorroland <roland>
Fri, 6 Dec 2002 11:11:15 +0000 (11:11 +0000)
committerroland <roland>
Fri, 6 Dec 2002 11:11:15 +0000 (11:11 +0000)
commite8256d00c0924ecfb389487fe33a4313a53fec6a
treeb4abe6735a046c467bca86a53309a27047b80f14
parentcaafbd952f6065c44f6ac855dca4e30a36b1d29d
2002-12-06  Roland McGrath  <roland@redhat.com>

* malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
(malloc_starter, memalign_starter, free_starter): Don't define these.
* malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
Don't declare them either.
* malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
__pthread_initialize, so no need to set hooks to *_starter.
(ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
[_LIBC && SHARED && USE_TLS && !USE___THREAD]
(__libc_malloc_pthread_startup): New function.
* malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
* malloc/hooks.c (memalign_starter): New function.
* malloc/malloc.c: Declare it.
* malloc/arena.c (save_memalign_hook): New variable.
(ptmalloc_init): Set __memalign_hook to memalign_starter.
malloc/arena.c
malloc/hooks.c
malloc/malloc.c