Bug 1020541 - JS Stacks no longer reported in the profiler, r=benwa,djvj

This commit is contained in:
Victor Porof 2014-06-24 21:46:13 -04:00
parent 5e2429ee57
commit 0f388eafde

View File

@ -424,7 +424,7 @@ static void mergeNativeBacktrace(ThreadProfile &aProfile, const PCArray &array)
while (pseudoStackPos < stack->stackSize()) {
volatile StackEntry& entry = stack->mStack[pseudoStackPos];
if (entry.stackAddress() < array.sp_array[i-1] && entry.stackAddress())
if (entry.isCpp() && entry.stackAddress() && entry.stackAddress() < array.sp_array[i-1])
break;
addProfileEntry(entry, aProfile, stack, array.array[0]);