Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dmalloc_heapprofd.cpp282 __libc_globals.mutate([](libc_globals* globals) { in HandleHeapprofdSignal() argument
283 atomic_store(&globals->default_dispatch_table, &gEphemeralDispatch); in HandleHeapprofdSignal()
285 atomic_store(&globals->current_dispatch_table, &gEphemeralDispatch); in HandleHeapprofdSignal()
326 static void CommonInstallHooks(libc_globals* globals) { in CommonInstallHooks() argument
330 …impl_handle = LoadSharedLibrary(kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc_dispatch_t… in CommonInstallHooks()
334 …} else if (!InitSharedLibrary(impl_handle, kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc… in CommonInstallHooks()
344 if (FinishInstallHooks(globals, nullptr, kHeapprofdPrefix)) { in CommonInstallHooks()
351 void HeapprofdInstallHooksAtInit(libc_globals* globals) { in HeapprofdInstallHooksAtInit() argument
352 MaybeModifyGlobals(kWithoutLock, [globals] { in HeapprofdInstallHooksAtInit()
355 CommonInstallHooks(globals); in HeapprofdInstallHooksAtInit()
[all …]
Dmalloc_common_dynamic.cpp320 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix) { in FinishInstallHooks() argument
338 atomic_store(&globals->default_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
340 atomic_store(&globals->current_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
355 static bool InstallHooks(libc_globals* globals, const char* options, const char* prefix, in InstallHooks() argument
357 void* impl_handle = LoadSharedLibrary(shared_lib, prefix, &globals->malloc_dispatch_table); in InstallHooks()
362 if (!FinishInstallHooks(globals, options, prefix)) { in InstallHooks()
373 static void MallocInitImpl(libc_globals* globals) { in MallocInitImpl() argument
377 MaybeInitGwpAsanFromLibc(globals); in MallocInitImpl()
388 hook_installed = InstallHooks(globals, options, kDebugPrefix, kDebugSharedLib); in MallocInitImpl()
390 hook_installed = InstallHooks(globals, options, kHooksPrefix, kHooksSharedLib); in MallocInitImpl()
[all …]
Dheap_tagging.cpp60 __libc_globals.mutate([](libc_globals* globals) { in SetDefaultHeapTaggingLevel() argument
63 globals->heap_pointer_tag = (reinterpret_cast<uintptr_t>(POINTER_TAG) << TAG_SHIFT) | in SetDefaultHeapTaggingLevel()
87 __libc_globals.mutate([](libc_globals* globals) { in SetHeapTaggingLevel() argument
91 globals->heap_pointer_tag = static_cast<uintptr_t>(0xffull << UNTAG_SHIFT); in SetHeapTaggingLevel()
Dgwp_asan_wrappers.cpp213 bool MaybeInitGwpAsanFromLibc(libc_globals* globals) { in MaybeInitGwpAsanFromLibc() argument
223 return MaybeInitGwpAsan(globals); in MaybeInitGwpAsanFromLibc()
230 bool MaybeInitGwpAsan(libc_globals* globals, bool force_init) { in MaybeInitGwpAsan() argument
258 globals->malloc_dispatch_table = gwp_asan_dispatch; in MaybeInitGwpAsan()
259 atomic_store(&globals->default_dispatch_table, &gwp_asan_dispatch); in MaybeInitGwpAsan()
264 atomic_store(&globals->current_dispatch_table, &gwp_asan_dispatch); in MaybeInitGwpAsan()
Dgwp_asan_wrappers.h36 bool MaybeInitGwpAsanFromLibc(libc_globals* globals);
39 bool MaybeInitGwpAsan(libc_globals* globals, bool force_init = false);
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()
Dlibc_init_common.cpp68 __libc_globals.mutate([](libc_globals* globals) { in __libc_init_globals() argument
69 __libc_init_vdso(globals); in __libc_init_globals()
70 __libc_init_setjmp_cookie(globals); in __libc_init_globals()
Dmalloc_limit.cpp264 __libc_globals.mutate([](libc_globals* globals) { in EnableLimitDispatchTable() argument
265 atomic_store(&globals->current_dispatch_table, &__limit_dispatch); in EnableLimitDispatchTable()
284 __libc_globals.mutate([](libc_globals* globals) { in EnableLimitDispatchTable() argument
285 atomic_store(&globals->current_dispatch_table, &__limit_dispatch); in EnableLimitDispatchTable()
Dmalloc_heapprofd.h37 void HeapprofdInstallHooksAtInit(libc_globals* globals);
Dvdso.cpp76 void __libc_init_vdso(libc_globals* globals) { in __libc_init_vdso() argument
77 auto&& vdso = globals->vdso; in __libc_init_vdso()
Dmalloc_common_dynamic.h43 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix);
Dlibc_init_static.cpp236 static libc_shared_globals globals; in __libc_shared_globals() local
237 return &globals; in __libc_shared_globals()
Dmalloc_common.cpp325 __libc_globals.mutate([&](libc_globals* globals) { in android_mallopt() argument
326 return MaybeInitGwpAsan(globals, *reinterpret_cast<bool*>(arg)); in android_mallopt()
/bionic/libc/private/
Dbionic_globals.h116 __LIBC_HIDDEN__ void __libc_init_malloc(libc_globals* globals);
117 __LIBC_HIDDEN__ void __libc_init_setjmp_cookie(libc_globals* globals);
118 __LIBC_HIDDEN__ void __libc_init_vdso(libc_globals* globals);
/bionic/libc/
DAndroid.bp233 // Include `tzname`, `timezone`, and `daylight` globals.