/bionic/libc/bionic/ |
D | malloc_heapprofd.cpp | 282 __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 …]
|
D | malloc_common_dynamic.cpp | 322 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 …]
|
D | heap_tagging.cpp | 49 __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()
|
D | gwp_asan_wrappers.h | 36 bool MaybeInitGwpAsanFromLibc(libc_globals* globals); 39 bool MaybeInitGwpAsan(libc_globals* globals, bool force_init = false);
|
D | gwp_asan_wrappers.cpp | 212 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()
|
D | setjmp_cookie.cpp | 42 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()
|
D | malloc_heapprofd.h | 37 void HeapprofdInstallHooksAtInit(libc_globals* globals);
|
D | libc_init_common.cpp | 69 __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()
|
D | malloc_common_dynamic.h | 43 bool FinishInstallHooks(libc_globals* globals, const char* options, const char* prefix);
|
D | malloc_limit.cpp | 264 __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()
|
D | vdso.cpp | 76 void __libc_init_vdso(libc_globals* globals) { in __libc_init_vdso() argument 77 auto&& vdso = globals->vdso; in __libc_init_vdso()
|
D | malloc_common.cpp | 333 __libc_globals.mutate([&](libc_globals* globals) { in android_mallopt() argument 334 return MaybeInitGwpAsan(globals, *reinterpret_cast<bool*>(arg)); in android_mallopt()
|
D | libc_init_static.cpp | 414 static libc_shared_globals globals; in __libc_shared_globals() local 415 return &globals; in __libc_shared_globals()
|
/bionic/libc/private/ |
D | bionic_globals.h | 122 __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/ |
D | Android.bp | 256 // Include `tzname`, `timezone`, and `daylight` globals.
|