mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-06 13:20:06 +00:00
d58847f952
* 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.
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
libc {
|
|
GLIBC_2.0 {
|
|
# global variables
|
|
_obstack;
|
|
|
|
# interface of malloc functions
|
|
__libc_calloc; __libc_free; __libc_mallinfo; __libc_malloc;
|
|
__libc_mallopt; __libc_memalign; __libc_pvalloc; __libc_realloc;
|
|
__libc_valloc;
|
|
__malloc_initialize_hook; __free_hook; __malloc_hook; __realloc_hook;
|
|
__memalign_hook; __after_morecore_hook;
|
|
__malloc_initialized; __default_morecore; __morecore;
|
|
|
|
# functions used in inline functions or macros
|
|
_obstack_allocated_p; _obstack_begin; _obstack_begin_1;
|
|
_obstack_free; _obstack_memory_used; _obstack_newchunk;
|
|
|
|
# variables in normal name space
|
|
mallwatch; obstack_alloc_failed_handler; obstack_exit_failure;
|
|
|
|
# c*
|
|
calloc; cfree;
|
|
|
|
# f*
|
|
free;
|
|
|
|
# m*
|
|
mallinfo; malloc; malloc_get_state; malloc_set_state; malloc_stats;
|
|
malloc_trim; malloc_usable_size; mallopt; memalign; mprobe; mtrace;
|
|
muntrace;
|
|
|
|
# o*
|
|
obstack_free;
|
|
|
|
# p*
|
|
pvalloc;
|
|
|
|
# r*
|
|
realloc;
|
|
|
|
# t*
|
|
tr_break;
|
|
|
|
# v*
|
|
valloc;
|
|
}
|
|
GLIBC_2.1 {
|
|
# Special functions.
|
|
__libc_freeres;
|
|
}
|
|
GLIBC_2.2 {
|
|
# m*
|
|
mcheck_check_all; mcheck_pedantic;
|
|
|
|
# p*
|
|
posix_memalign;
|
|
}
|
|
GLIBC_PRIVATE {
|
|
# Internal startup hook for libpthread.
|
|
__libc_malloc_pthread_startup;
|
|
}
|
|
}
|