DescriptionSkip samples where top function's stack frame is not setup properly
Stack iterator takes return address based on the frame pointer (ebp) and detects JS frames based on value at fp + StandardFrameConstants::kMarkerOffset. So in order the iterator to work correctly this values should be already setup for the current function. Stack frame is constructed at the very beginning of JS function code and destroyed before return. If sample is taken before before the frame construction is completed or after it was destroyed the stack iterator will wrongly think that FP points at the current functions frame base and will skip callers frame. To avoid this we mark code ranges where stack frame doesn't exist and completely ignore such samples.
This fixes cctest/test-cpu-profiler/CollectCpuProfile flakiness.
BUG=v8:2628
R=jkummerow@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=14670
Patch Set 1 #Patch Set 2 : Reverted build/common.gypi #
Total comments: 12
Patch Set 3 : Removed printf #
Total comments: 1
Patch Set 4 : Supported other archs #
Total comments: 12
Patch Set 5 : comments addressed #Patch Set 6 : skipped new test on simulators #Patch Set 7 : mips->mipsel #
Total comments: 2
Messages
Total messages: 13 (0 generated)
|