Home
last modified time | relevance | path

Searched refs:current_dispatch_table (Results 1 - 11 of 11) sorted by relevance

/third_party/musl/porting/linux/user/src/hook/
H A Dmusl_preinit.c445 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
453 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
515 if (atomic_exchange(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL)) { in ohos_malloc_hook_init_function()
531 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL, memory_order_seq_cst); in __set_default_malloc()
561 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_malloc_hook()
573 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)so_dispatch_value, memory_order_seq_cst); in __install_malloc_hook()
613 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_memleak_tracker_hook()
625 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)memleak_tracker_so_dispatch_value, memory_order_seq_cst); in __install_memleak_tracker_hook()
H A Dmalloc_common.c27 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in malloc()
55 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in aligned_alloc()
74 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in free()
H A Dmusl_malloc_dispatch_table.h8 volatile atomic_llong current_dispatch_table; member
H A Dmemory_trace.c11 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in memtrace()
H A Dmusl_preinit_common.h112 volatile const struct MallocDispatchType* ret = (struct MallocDispatchType *)atomic_load_explicit(&__musl_libc_globals.current_dispatch_table, memory_order_acquire); in get_current_dispatch_table()
/third_party/musl/src/hook/linux/
H A Dmusl_preinit.c459 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
467 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
529 if (atomic_exchange(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL)) { in ohos_malloc_hook_init_function()
545 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL, memory_order_seq_cst); in __set_default_malloc()
575 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_malloc_hook()
587 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)so_dispatch_value, memory_order_seq_cst); in __install_malloc_hook()
627 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_memleak_tracker_hook()
639 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)memleak_tracker_so_dispatch_value, memory_order_seq_cst); in __install_memleak_tracker_hook()
H A Dmalloc_common.c55 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in malloc()
83 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in aligned_alloc()
102 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in free()
H A Dmusl_malloc_dispatch_table.h30 volatile atomic_llong current_dispatch_table; member
H A Dmemory_trace.c26 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in memtrace()
H A Dmusl_preinit_common.h134 volatile const struct MallocDispatchType* ret = (struct MallocDispatchType *)atomic_load_explicit(&__musl_libc_globals.current_dispatch_table, memory_order_acquire); in get_current_dispatch_table()
/third_party/musl/libc-test/src/nativehook/
H A Druntest.c50 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)0x95919591, memory_order_seq_cst); in main()
59 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)0x95919591, memory_order_seq_cst); in main()

Completed in 6 milliseconds