Bug 929763: Don't call TickSample::PopulateContext unless native stack walking is enabled; r=BenWa

This commit is contained in:
Aaron Klotz 2013-10-22 21:56:50 -07:00
parent bf9a6e83f1
commit 4ff2db0e59

View File

@ -620,11 +620,13 @@ SyncProfile* TableTicker::GetBacktrace()
TickSample sample;
sample.threadProfile = profile;
#if defined(HAVE_NATIVE_UNWIND)
#if defined(XP_WIN) || defined(LINUX)
tickcontext_t context;
sample.PopulateContext(&context);
#elif defined(XP_MACOSX)
sample.PopulateContext(nullptr);
#endif
#endif
sample.isSamplingCurrentThread = true;