예제 #1
0
NS_LogInit()
{
  NS_SetMainThread();

  // FIXME: This is called multiple times, we should probably not allow that.
  StackWalkInitCriticalAddress();
  if (++gInitCount) {
    nsTraceRefcnt::SetActivityIsLegal(true);
  }
}
예제 #2
0
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
}
NS_LogInit()
{
  // FIXME: This is called multiple times, we should probably not allow that.
  StackWalkInitCriticalAddress();
#ifdef NS_IMPL_REFCNT_LOGGING
  if (++gInitCount)
    nsTraceRefcntImpl::SetActivityIsLegal(true);
#endif

#ifdef NS_TRACE_MALLOC
  // XXX we don't have to worry about shutting down trace-malloc; it
  // handles this itself, through an atexit() callback.
  if (!NS_TraceMallocHasStarted())
    NS_TraceMallocStartup(-1);  // -1 == no logging
#endif
}