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
329 …impl_handle = LoadSharedLibrary(kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc_dispatch_t… in CommonInstallHooks()
334 …} else if (!InitSharedLibrary(impl_handle, kHeapprofdSharedLib, kHeapprofdPrefix, &globals->malloc… in CommonInstallHooks()
344 FinishInstallHooks(globals, nullptr, kHeapprofdPrefix); in CommonInstallHooks()
347 void HeapprofdInstallHooksAtInit(libc_globals* globals) { in HeapprofdInstallHooksAtInit() argument
348 MaybeModifyGlobals(kWithoutLock, [globals] { in HeapprofdInstallHooksAtInit()
351 CommonInstallHooks(globals); in HeapprofdInstallHooksAtInit()
[all …]
Dmalloc_common_dynamic.cpp322 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix) { in FinishInstallHooks() argument
340 atomic_store(&globals->default_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
342 atomic_store(&globals->current_dispatch_table, &globals->malloc_dispatch_table); in FinishInstallHooks()
357 static bool InstallHooks(libc_globals* globals, const char* options, const char* prefix, in InstallHooks() argument
359 void* impl_handle = LoadSharedLibrary(shared_lib, prefix, &globals->malloc_dispatch_table); in InstallHooks()
364 if (!FinishInstallHooks(globals, options, prefix)) { in InstallHooks()
376 static void MallocInitImpl(libc_globals* globals) { in MallocInitImpl() argument
380 MaybeInitGwpAsanFromLibc(globals); in MallocInitImpl()
392 hook_installed = InstallHooks(globals, options, kDebugPrefix, kDebugSharedLib); in MallocInitImpl()
394 hook_installed = InstallHooks(globals, options, kHooksPrefix, kHooksSharedLib); in MallocInitImpl()
[all …]
Dheap_tagging.cpp49 __libc_globals.mutate([](libc_globals* globals) { in SetDefaultHeapTaggingLevel() argument
52 globals->heap_pointer_tag = (reinterpret_cast<uintptr_t>(POINTER_TAG) << TAG_SHIFT) | in SetDefaultHeapTaggingLevel()
110 __libc_globals.mutate([](libc_globals* globals) { in SetHeapTaggingLevel() argument
114 globals->heap_pointer_tag = static_cast<uintptr_t>(0xffull << UNTAG_SHIFT); in SetHeapTaggingLevel()
Dgwp_asan_wrappers.h36 bool MaybeInitGwpAsanFromLibc(libc_globals* globals);
39 bool MaybeInitGwpAsan(libc_globals* globals, bool force_init = false);
Dgwp_asan_wrappers.cpp212 bool MaybeInitGwpAsanFromLibc(libc_globals* globals) { in MaybeInitGwpAsanFromLibc() argument
222 return MaybeInitGwpAsan(globals); in MaybeInitGwpAsanFromLibc()
229 bool MaybeInitGwpAsan(libc_globals* globals, bool force_init) { in MaybeInitGwpAsan() argument
257 globals->malloc_dispatch_table = gwp_asan_dispatch; in MaybeInitGwpAsan()
258 atomic_store(&globals->default_dispatch_table, &gwp_asan_dispatch); in MaybeInitGwpAsan()
263 atomic_store(&globals->current_dispatch_table, &gwp_asan_dispatch); in MaybeInitGwpAsan()
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_heapprofd.h37 void HeapprofdInstallHooksAtInit(libc_globals* globals);
Dlibc_init_common.cpp69 __libc_globals.mutate([](libc_globals* globals) { in __libc_init_globals() argument
70 __libc_init_vdso(globals); in __libc_init_globals()
71 __libc_init_setjmp_cookie(globals); in __libc_init_globals()
Dmalloc_common_dynamic.h43 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix);
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()
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.cpp333 __libc_globals.mutate([&](libc_globals* globals) { in android_mallopt() argument
334 return MaybeInitGwpAsan(globals, *reinterpret_cast<bool*>(arg)); in android_mallopt()
Dlibc_init_static.cpp414 static libc_shared_globals globals; in __libc_shared_globals() local
415 return &globals; in __libc_shared_globals()
/bionic/libc/private/
Dbionic_globals.h122 __LIBC_HIDDEN__ void __libc_init_malloc(libc_globals* globals);
123 __LIBC_HIDDEN__ void __libc_init_setjmp_cookie(libc_globals* globals);
124 __LIBC_HIDDEN__ void __libc_init_vdso(libc_globals* globals);
/bionic/libc/
DAndroid.bp256 // Include `tzname`, `timezone`, and `daylight` globals.