Home
last modified time | relevance | path

Searched refs:globals (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/bionic/
Dmalloc_heapprofd.cpp127 __libc_globals.mutate([](libc_globals* globals) { in MaybeInstallInitHeapprofdHook() argument
128 atomic_store(&globals->default_dispatch_table, &__heapprofd_init_dispatch); in MaybeInstallInitHeapprofdHook()
130 if (dispatch_table == nullptr || dispatch_table == &globals->malloc_dispatch_table) { in MaybeInstallInitHeapprofdHook()
131 atomic_store(&globals->current_dispatch_table, &__heapprofd_init_dispatch); in MaybeInstallInitHeapprofdHook()
262 static void CommonInstallHooks(libc_globals* globals) { in CommonInstallHooks() argument
266 …impl_handle = LoadSharedLibrary(kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc_dispatch_t… in CommonInstallHooks()
270 …} else if (!InitSharedLibrary(impl_handle, kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc… in CommonInstallHooks()
274 if (FinishInstallHooks(globals, nullptr, kHeapprofdPrefix)) { in CommonInstallHooks()
283 void HeapprofdInstallHooksAtInit(libc_globals* globals) { in HeapprofdInstallHooksAtInit() argument
287 CommonInstallHooks(globals); in HeapprofdInstallHooksAtInit()
[all …]
Dsetjmp_cookie.cpp42 void __libc_init_setjmp_cookie(libc_globals* globals) { in __libc_init_setjmp_cookie() argument
47 globals->setjmp_cookie = value & ~1; in __libc_init_setjmp_cookie()
Dmalloc_common_dynamic.cpp333 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix) { in FinishInstallHooks() argument
343 atomic_store(&globals->default_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
345 atomic_store(&globals->current_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
360 static bool InstallHooks(libc_globals* globals, const char* options, const char* prefix, in InstallHooks() argument
362 void* impl_handle = LoadSharedLibrary(shared_lib, prefix, &globals->malloc_dispatch_table); in InstallHooks()
367 if (!FinishInstallHooks(globals, options, prefix)) { in InstallHooks()
375 static void MallocInitImpl(libc_globals* globals) { in MallocInitImpl() argument
383 hook_installed = InstallHooks(globals, options, kDebugPrefix, kDebugSharedLib); in MallocInitImpl()
385 hook_installed = InstallHooks(globals, options, kHooksPrefix, kHooksSharedLib); in MallocInitImpl()
390 HeapprofdInstallHooksAtInit(globals); in MallocInitImpl()
[all …]
Dmalloc_heapprofd.h37 void HeapprofdInstallHooksAtInit(libc_globals* globals);
Dmalloc_common_dynamic.h43 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix);
Dlibc_init_common.cpp65 __libc_globals.mutate([](libc_globals* globals) { in __libc_init_globals() argument
66 __libc_init_vdso(globals); in __libc_init_globals()
67 __libc_init_setjmp_cookie(globals); in __libc_init_globals()
Dmalloc_limit.cpp260 __libc_globals.mutate([](libc_globals* globals) { in EnableLimitDispatchTable() argument
261 atomic_store(&globals->current_dispatch_table, &__limit_dispatch); in EnableLimitDispatchTable()
281 __libc_globals.mutate([](libc_globals* globals) { in EnableLimitDispatchTable() argument
282 atomic_store(&globals->current_dispatch_table, &__limit_dispatch); in EnableLimitDispatchTable()
Dvdso.cpp76 void __libc_init_vdso(libc_globals* globals) { in __libc_init_vdso() argument
77 auto&& vdso = globals->vdso; in __libc_init_vdso()
Dlibc_init_static.cpp236 static libc_shared_globals globals; in __libc_shared_globals() local
237 return &globals; in __libc_shared_globals()
/bionic/libc/private/
Dbionic_globals.h99 __LIBC_HIDDEN__ void __libc_init_malloc(libc_globals* globals);
100 __LIBC_HIDDEN__ void __libc_init_setjmp_cookie(libc_globals* globals);
101 __LIBC_HIDDEN__ void __libc_init_vdso(libc_globals* globals);
/bionic/libc/
DAndroid.bp164 // Include `tzname`, `timezone`, and `daylight` globals.