mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 929763: Don't call TickSample::PopulateContext unless native stack walking is enabled; r=BenWa
This commit is contained in:
parent
dfcb292444
commit
ffa98a8a87
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user