NS_LogInit() { NS_SetMainThread(); // FIXME: This is called multiple times, we should probably not allow that. StackWalkInitCriticalAddress(); if (++gInitCount) { nsTraceRefcnt::SetActivityIsLegal(true); } }
NS_LogInit() { NS_SetMainThread(); // FIXME: This is called multiple times, we should probably not allow that. #ifdef MOZ_STACKWALKING StackWalkInitCriticalAddress(); #endif #ifdef NS_IMPL_REFCNT_LOGGING if (++gInitCount) { nsTraceRefcnt::SetActivityIsLegal(true); } #endif }