mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 1050440 - Remove repeated js::RunScript frames in ThreadStackHelper; r=snorp
--HG-- extra : amend_source : 26d40a84e7a107f328809e4dae94a0bd9db15c8b
This commit is contained in:
parent
56142221d1
commit
0900e9257a
@ -605,7 +605,10 @@ ThreadStackHelper::FillStackBuffer()
|
||||
}
|
||||
#endif
|
||||
const char* const label = entry->label();
|
||||
if (mStackToFill->IsSameAsEntry(prevLabel, label)) {
|
||||
if (mStackToFill->IsSameAsEntry(prevLabel, label) ||
|
||||
!strcmp(label, "js::RunScript")) {
|
||||
// Avoid duplicate labels to save space in the stack.
|
||||
// Avoid js::RunScript labels because we save actual JS frames above.
|
||||
continue;
|
||||
}
|
||||
mStackToFill->infallibleAppend(label);
|
||||
|
Loading…
x
Reference in New Issue
Block a user