Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1239498 - Use Stackwalk64 on win x64. r=jrmuizel
Browse files Browse the repository at this point in the history
  • Loading branch information
bgirard committed Jan 13, 2016
1 parent 66776f8 commit 813078e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/profiler/core/GeckoSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,9 @@ void GeckoSampler::doNativeBacktrace(ThreadProfile &aProfile, TickSample* aSampl
StackWalkCallback(/* frameNumber */ 0, aSample->pc, aSample->sp, &nativeStack);

uint32_t maxFrames = uint32_t(nativeStack.size - nativeStack.count);
#if defined(XP_MACOSX) || defined(XP_WIN)
// win X64 doesn't support disabling frame pointers emission so we need
// to fallback to using StackWalk64 which is slower.
#if defined(XP_MACOSX) || (defined(XP_WIN) && !defined(V8_HOST_ARCH_X64))
void *stackEnd = aSample->threadProfile->GetStackTop();
bool rv = true;
if (aSample->fp >= aSample->sp && aSample->fp <= stackEnd)
Expand Down

0 comments on commit 813078e

Please sign in to comment.