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 f68a8d7ae4
commit f857d0aba9

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]);