Lines Matching refs:globals
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()
364 __libc_globals.mutate([](libc_globals* globals) { in InitHeapprofd() argument
365 CommonInstallHooks(globals); in InitHeapprofd()
380 __libc_globals.mutate([](libc_globals* globals) { in MallocInitHeapprofdHook() argument
382 atomic_store(&globals->default_dispatch_table, previous_dispatch); in MallocInitHeapprofdHook()
384 atomic_store(&globals->current_dispatch_table, previous_dispatch); in MallocInitHeapprofdHook()
436 __libc_globals.mutate([](libc_globals* globals) { in DispatchReset() argument
438 atomic_store(&globals->default_dispatch_table, previous_dispatch); in DispatchReset()
440 atomic_store(&globals->current_dispatch_table, previous_dispatch); in DispatchReset()