Update private_symbols.txt.
Change test-related mangling to simplify symbol filtering. The following commands can be used to detect missing/obsolete symbol mangling, with the caveat that the full set of symbols is based on the union of symbols generated by all configurations, some of which are platform-specific: ./autogen.sh --enable-debug --enable-prof --enable-lazy-lock make all tests nm -a lib/libjemalloc.a src/*.jet.o \ |grep " [TDBCR] " \ |awk '{print $3}' \ |sed -e 's/^\(je_\|jet_\(n_\)\?\)\([a-zA-Z0-9_]*\)/\3/g' \ |LC_COLLATE=C sort -u \ |grep -v \ -e '^\(malloc\|calloc\|posix_memalign\|aligned_alloc\|realloc\|free\)$' \ -e '^\(m\|r\|x\|s\|d\|sd\|n\)allocx$' \ -e '^mallctl\(\|nametomib\|bymib\)$' \ -e '^malloc_\(stats_print\|usable_size\|message\)$' \ -e '^\(memalign\|valloc\)$' \ -e '^__\(malloc\|memalign\|realloc\|free\)_hook$' \ -e '^pthread_create$' \ > /tmp/private_symbols.txt
This commit is contained in:
parent
a0c632c9d5
commit
ab0cfe01fa
@ -100,12 +100,6 @@ arena_ralloc_junk_large
|
|||||||
arena_ralloc_no_move
|
arena_ralloc_no_move
|
||||||
arena_rd_to_miscelm
|
arena_rd_to_miscelm
|
||||||
arena_redzone_corruption
|
arena_redzone_corruption
|
||||||
arena_run_heap_empty
|
|
||||||
arena_run_heap_first
|
|
||||||
arena_run_heap_insert
|
|
||||||
arena_run_heap_new
|
|
||||||
arena_run_heap_remove_first
|
|
||||||
arena_run_heap_remove
|
|
||||||
arena_run_regind
|
arena_run_regind
|
||||||
arena_run_to_miscelm
|
arena_run_to_miscelm
|
||||||
arena_salloc
|
arena_salloc
|
||||||
@ -132,6 +126,11 @@ atomic_sub_u
|
|||||||
atomic_sub_uint32
|
atomic_sub_uint32
|
||||||
atomic_sub_uint64
|
atomic_sub_uint64
|
||||||
atomic_sub_z
|
atomic_sub_z
|
||||||
|
atomic_write_p
|
||||||
|
atomic_write_u
|
||||||
|
atomic_write_uint32
|
||||||
|
atomic_write_uint64
|
||||||
|
atomic_write_z
|
||||||
base_alloc
|
base_alloc
|
||||||
base_boot
|
base_boot
|
||||||
base_postfork_child
|
base_postfork_child
|
||||||
@ -207,6 +206,8 @@ extent_node_addr_get
|
|||||||
extent_node_addr_set
|
extent_node_addr_set
|
||||||
extent_node_arena_get
|
extent_node_arena_get
|
||||||
extent_node_arena_set
|
extent_node_arena_set
|
||||||
|
extent_node_committed_get
|
||||||
|
extent_node_committed_set
|
||||||
extent_node_dirty_insert
|
extent_node_dirty_insert
|
||||||
extent_node_dirty_linkage_init
|
extent_node_dirty_linkage_init
|
||||||
extent_node_dirty_remove
|
extent_node_dirty_remove
|
||||||
@ -315,12 +316,13 @@ jemalloc_postfork_parent
|
|||||||
jemalloc_prefork
|
jemalloc_prefork
|
||||||
large_maxclass
|
large_maxclass
|
||||||
lg_floor
|
lg_floor
|
||||||
|
lg_prof_sample
|
||||||
malloc_cprintf
|
malloc_cprintf
|
||||||
malloc_mutex_init
|
|
||||||
malloc_mutex_lock
|
|
||||||
malloc_mutex_assert_not_owner
|
malloc_mutex_assert_not_owner
|
||||||
malloc_mutex_assert_owner
|
malloc_mutex_assert_owner
|
||||||
malloc_mutex_boot
|
malloc_mutex_boot
|
||||||
|
malloc_mutex_init
|
||||||
|
malloc_mutex_lock
|
||||||
malloc_mutex_postfork_child
|
malloc_mutex_postfork_child
|
||||||
malloc_mutex_postfork_parent
|
malloc_mutex_postfork_parent
|
||||||
malloc_mutex_prefork
|
malloc_mutex_prefork
|
||||||
@ -344,6 +346,8 @@ narenas_tdata_cleanup
|
|||||||
narenas_total_get
|
narenas_total_get
|
||||||
ncpus
|
ncpus
|
||||||
nhbins
|
nhbins
|
||||||
|
nhclasses
|
||||||
|
nlclasses
|
||||||
nstime_add
|
nstime_add
|
||||||
nstime_compare
|
nstime_compare
|
||||||
nstime_copy
|
nstime_copy
|
||||||
@ -397,6 +401,7 @@ pow2_ceil_u64
|
|||||||
pow2_ceil_zu
|
pow2_ceil_zu
|
||||||
prng_lg_range
|
prng_lg_range
|
||||||
prng_range
|
prng_range
|
||||||
|
prof_active
|
||||||
prof_active_get
|
prof_active_get
|
||||||
prof_active_get_unlocked
|
prof_active_get_unlocked
|
||||||
prof_active_set
|
prof_active_set
|
||||||
@ -406,6 +411,7 @@ prof_backtrace
|
|||||||
prof_boot0
|
prof_boot0
|
||||||
prof_boot1
|
prof_boot1
|
||||||
prof_boot2
|
prof_boot2
|
||||||
|
prof_bt_count
|
||||||
prof_dump_header
|
prof_dump_header
|
||||||
prof_dump_open
|
prof_dump_open
|
||||||
prof_free
|
prof_free
|
||||||
@ -432,6 +438,7 @@ prof_tctx_get
|
|||||||
prof_tctx_reset
|
prof_tctx_reset
|
||||||
prof_tctx_set
|
prof_tctx_set
|
||||||
prof_tdata_cleanup
|
prof_tdata_cleanup
|
||||||
|
prof_tdata_count
|
||||||
prof_tdata_get
|
prof_tdata_get
|
||||||
prof_tdata_init
|
prof_tdata_init
|
||||||
prof_tdata_reinit
|
prof_tdata_reinit
|
||||||
@ -519,6 +526,13 @@ ticker_tick
|
|||||||
ticker_ticks
|
ticker_ticks
|
||||||
tsd_arena_get
|
tsd_arena_get
|
||||||
tsd_arena_set
|
tsd_arena_set
|
||||||
|
tsd_arenap_get
|
||||||
|
tsd_arenas_tdata_bypass_get
|
||||||
|
tsd_arenas_tdata_bypass_set
|
||||||
|
tsd_arenas_tdata_bypassp_get
|
||||||
|
tsd_arenas_tdata_get
|
||||||
|
tsd_arenas_tdata_set
|
||||||
|
tsd_arenas_tdatap_get
|
||||||
tsd_boot
|
tsd_boot
|
||||||
tsd_boot0
|
tsd_boot0
|
||||||
tsd_boot1
|
tsd_boot1
|
||||||
@ -536,19 +550,28 @@ tsd_init_head
|
|||||||
tsd_nominal
|
tsd_nominal
|
||||||
tsd_prof_tdata_get
|
tsd_prof_tdata_get
|
||||||
tsd_prof_tdata_set
|
tsd_prof_tdata_set
|
||||||
|
tsd_prof_tdatap_get
|
||||||
tsd_quarantine_get
|
tsd_quarantine_get
|
||||||
tsd_quarantine_set
|
tsd_quarantine_set
|
||||||
|
tsd_quarantinep_get
|
||||||
tsd_set
|
tsd_set
|
||||||
tsd_tcache_enabled_get
|
tsd_tcache_enabled_get
|
||||||
tsd_tcache_enabled_set
|
tsd_tcache_enabled_set
|
||||||
|
tsd_tcache_enabledp_get
|
||||||
tsd_tcache_get
|
tsd_tcache_get
|
||||||
tsd_tcache_set
|
tsd_tcache_set
|
||||||
|
tsd_tcachep_get
|
||||||
tsd_thread_allocated_get
|
tsd_thread_allocated_get
|
||||||
tsd_thread_allocated_set
|
tsd_thread_allocated_set
|
||||||
|
tsd_thread_allocatedp_get
|
||||||
tsd_thread_deallocated_get
|
tsd_thread_deallocated_get
|
||||||
tsd_thread_deallocated_set
|
tsd_thread_deallocated_set
|
||||||
|
tsd_thread_deallocatedp_get
|
||||||
tsd_tls
|
tsd_tls
|
||||||
tsd_tsd
|
tsd_tsd
|
||||||
|
tsd_witnesses_get
|
||||||
|
tsd_witnesses_set
|
||||||
|
tsd_witnessesp_get
|
||||||
u2rz
|
u2rz
|
||||||
valgrind_freelike_block
|
valgrind_freelike_block
|
||||||
valgrind_make_mem_defined
|
valgrind_make_mem_defined
|
||||||
|
24
src/arena.c
24
src/arena.c
@ -156,7 +156,7 @@ run_quantize_ceil_compute(size_t size)
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef run_quantize_floor
|
#undef run_quantize_floor
|
||||||
#define run_quantize_floor JEMALLOC_N(run_quantize_floor_impl)
|
#define run_quantize_floor JEMALLOC_N(n_run_quantize_floor)
|
||||||
#endif
|
#endif
|
||||||
static size_t
|
static size_t
|
||||||
run_quantize_floor(size_t size)
|
run_quantize_floor(size_t size)
|
||||||
@ -174,12 +174,12 @@ run_quantize_floor(size_t size)
|
|||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef run_quantize_floor
|
#undef run_quantize_floor
|
||||||
#define run_quantize_floor JEMALLOC_N(run_quantize_floor)
|
#define run_quantize_floor JEMALLOC_N(run_quantize_floor)
|
||||||
run_quantize_t *run_quantize_floor = JEMALLOC_N(run_quantize_floor_impl);
|
run_quantize_t *run_quantize_floor = JEMALLOC_N(n_run_quantize_floor);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef run_quantize_ceil
|
#undef run_quantize_ceil
|
||||||
#define run_quantize_ceil JEMALLOC_N(run_quantize_ceil_impl)
|
#define run_quantize_ceil JEMALLOC_N(n_run_quantize_ceil)
|
||||||
#endif
|
#endif
|
||||||
static size_t
|
static size_t
|
||||||
run_quantize_ceil(size_t size)
|
run_quantize_ceil(size_t size)
|
||||||
@ -197,7 +197,7 @@ run_quantize_ceil(size_t size)
|
|||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef run_quantize_ceil
|
#undef run_quantize_ceil
|
||||||
#define run_quantize_ceil JEMALLOC_N(run_quantize_ceil)
|
#define run_quantize_ceil JEMALLOC_N(run_quantize_ceil)
|
||||||
run_quantize_t *run_quantize_ceil = JEMALLOC_N(run_quantize_ceil_impl);
|
run_quantize_t *run_quantize_ceil = JEMALLOC_N(n_run_quantize_ceil);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static arena_run_heap_t *
|
static arena_run_heap_t *
|
||||||
@ -2271,7 +2271,7 @@ arena_alloc_junk_small(void *ptr, arena_bin_info_t *bin_info, bool zero)
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef arena_redzone_corruption
|
#undef arena_redzone_corruption
|
||||||
#define arena_redzone_corruption JEMALLOC_N(arena_redzone_corruption_impl)
|
#define arena_redzone_corruption JEMALLOC_N(n_arena_redzone_corruption)
|
||||||
#endif
|
#endif
|
||||||
static void
|
static void
|
||||||
arena_redzone_corruption(void *ptr, size_t usize, bool after,
|
arena_redzone_corruption(void *ptr, size_t usize, bool after,
|
||||||
@ -2286,7 +2286,7 @@ arena_redzone_corruption(void *ptr, size_t usize, bool after,
|
|||||||
#undef arena_redzone_corruption
|
#undef arena_redzone_corruption
|
||||||
#define arena_redzone_corruption JEMALLOC_N(arena_redzone_corruption)
|
#define arena_redzone_corruption JEMALLOC_N(arena_redzone_corruption)
|
||||||
arena_redzone_corruption_t *arena_redzone_corruption =
|
arena_redzone_corruption_t *arena_redzone_corruption =
|
||||||
JEMALLOC_N(arena_redzone_corruption_impl);
|
JEMALLOC_N(n_arena_redzone_corruption);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2327,7 +2327,7 @@ arena_redzones_validate(void *ptr, arena_bin_info_t *bin_info, bool reset)
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef arena_dalloc_junk_small
|
#undef arena_dalloc_junk_small
|
||||||
#define arena_dalloc_junk_small JEMALLOC_N(arena_dalloc_junk_small_impl)
|
#define arena_dalloc_junk_small JEMALLOC_N(n_arena_dalloc_junk_small)
|
||||||
#endif
|
#endif
|
||||||
void
|
void
|
||||||
arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info)
|
arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info)
|
||||||
@ -2342,7 +2342,7 @@ arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info)
|
|||||||
#undef arena_dalloc_junk_small
|
#undef arena_dalloc_junk_small
|
||||||
#define arena_dalloc_junk_small JEMALLOC_N(arena_dalloc_junk_small)
|
#define arena_dalloc_junk_small JEMALLOC_N(arena_dalloc_junk_small)
|
||||||
arena_dalloc_junk_small_t *arena_dalloc_junk_small =
|
arena_dalloc_junk_small_t *arena_dalloc_junk_small =
|
||||||
JEMALLOC_N(arena_dalloc_junk_small_impl);
|
JEMALLOC_N(n_arena_dalloc_junk_small);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -2780,7 +2780,7 @@ arena_dalloc_small(tsd_t *tsd, arena_t *arena, arena_chunk_t *chunk, void *ptr,
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef arena_dalloc_junk_large
|
#undef arena_dalloc_junk_large
|
||||||
#define arena_dalloc_junk_large JEMALLOC_N(arena_dalloc_junk_large_impl)
|
#define arena_dalloc_junk_large JEMALLOC_N(n_arena_dalloc_junk_large)
|
||||||
#endif
|
#endif
|
||||||
void
|
void
|
||||||
arena_dalloc_junk_large(void *ptr, size_t usize)
|
arena_dalloc_junk_large(void *ptr, size_t usize)
|
||||||
@ -2793,7 +2793,7 @@ arena_dalloc_junk_large(void *ptr, size_t usize)
|
|||||||
#undef arena_dalloc_junk_large
|
#undef arena_dalloc_junk_large
|
||||||
#define arena_dalloc_junk_large JEMALLOC_N(arena_dalloc_junk_large)
|
#define arena_dalloc_junk_large JEMALLOC_N(arena_dalloc_junk_large)
|
||||||
arena_dalloc_junk_large_t *arena_dalloc_junk_large =
|
arena_dalloc_junk_large_t *arena_dalloc_junk_large =
|
||||||
JEMALLOC_N(arena_dalloc_junk_large_impl);
|
JEMALLOC_N(n_arena_dalloc_junk_large);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2981,7 +2981,7 @@ label_fail:
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef arena_ralloc_junk_large
|
#undef arena_ralloc_junk_large
|
||||||
#define arena_ralloc_junk_large JEMALLOC_N(arena_ralloc_junk_large_impl)
|
#define arena_ralloc_junk_large JEMALLOC_N(n_arena_ralloc_junk_large)
|
||||||
#endif
|
#endif
|
||||||
static void
|
static void
|
||||||
arena_ralloc_junk_large(void *ptr, size_t old_usize, size_t usize)
|
arena_ralloc_junk_large(void *ptr, size_t old_usize, size_t usize)
|
||||||
@ -2996,7 +2996,7 @@ arena_ralloc_junk_large(void *ptr, size_t old_usize, size_t usize)
|
|||||||
#undef arena_ralloc_junk_large
|
#undef arena_ralloc_junk_large
|
||||||
#define arena_ralloc_junk_large JEMALLOC_N(arena_ralloc_junk_large)
|
#define arena_ralloc_junk_large JEMALLOC_N(arena_ralloc_junk_large)
|
||||||
arena_ralloc_junk_large_t *arena_ralloc_junk_large =
|
arena_ralloc_junk_large_t *arena_ralloc_junk_large =
|
||||||
JEMALLOC_N(arena_ralloc_junk_large_impl);
|
JEMALLOC_N(n_arena_ralloc_junk_large);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -99,7 +99,7 @@ nstime_divide(const nstime_t *time, const nstime_t *divisor)
|
|||||||
|
|
||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef nstime_update
|
#undef nstime_update
|
||||||
#define nstime_update JEMALLOC_N(nstime_update_impl)
|
#define nstime_update JEMALLOC_N(n_nstime_update)
|
||||||
#endif
|
#endif
|
||||||
bool
|
bool
|
||||||
nstime_update(nstime_t *time)
|
nstime_update(nstime_t *time)
|
||||||
@ -144,5 +144,5 @@ nstime_update(nstime_t *time)
|
|||||||
#ifdef JEMALLOC_JET
|
#ifdef JEMALLOC_JET
|
||||||
#undef nstime_update
|
#undef nstime_update
|
||||||
#define nstime_update JEMALLOC_N(nstime_update)
|
#define nstime_update JEMALLOC_N(nstime_update)
|
||||||
nstime_update_t *nstime_update = JEMALLOC_N(nstime_update_impl);
|
nstime_update_t *nstime_update = JEMALLOC_N(n_nstime_update);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user