Lines Matching refs:gHeapprofdState
152 static _Atomic MallocHeapprofdState gHeapprofdState = kInitialState; variable
228 if (atomic_load(&gHeapprofdState) == kIncompatibleHooks) { in HandleHeapprofdSignal()
239 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, in HandleHeapprofdSignal()
241 atomic_compare_exchange_strong(&gHeapprofdState, &expected2, in HandleHeapprofdSignal()
288 atomic_store(&gHeapprofdState, kEphemeralHookInstalled); in HandleHeapprofdSignal()
323 atomic_store(&gHeapprofdState, kIncompatibleHooks); in HeapprofdRememberHookConflict()
350 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in HeapprofdInstallHooksAtInit()
352 atomic_store(&gHeapprofdState, kHookInstalled); in HeapprofdInstallHooksAtInit()
363 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in InitHeapprofd()
367 atomic_store(&gHeapprofdState, kHookInstalled); in InitHeapprofd()
379 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kRemovingEphemeralHook)) { in MallocInitHeapprofdHook()
387 atomic_store(&gHeapprofdState, kInitialState); in MallocInitHeapprofdHook()
427 if (atomic_load(&gHeapprofdState) == kInitialState) { in DispatchReset()
435 if(atomic_compare_exchange_strong(&gHeapprofdState, &expected, kUninstallingHook)){ in DispatchReset()
443 atomic_store(&gHeapprofdState, kInitialState); in DispatchReset()